From e1b4f3e0aea6e9f1458b1477e3b42cd28f392b0d Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 7 Apr 2007 18:58:22 +0000 Subject: templatepkg: small fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@310 04377dda-e619-0410-9926-eae83683ac58 --- trunk/src/templatepkg | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'trunk') diff --git a/trunk/src/templatepkg b/trunk/src/templatepkg index 5a0150e..a87b361 100755 --- a/trunk/src/templatepkg +++ b/trunk/src/templatepkg @@ -820,9 +820,17 @@ function package_template { echo Buiding package for template $template... - version=${1:=1} - build=${2:=1} - arch=${3:=noarch} + if [ -z "$1" ]; then + version="1" + fi + + if [ -z "$2" ]; then + build="1" + fi + + if [ -z "$3" ]; then + arch="noarch" + fi TMP=${TMP:=/tmp} rm -rf $TMP/templatepkg -- cgit v1.2.3