]> gitweb.fluxo.info Git - simplepkg.git/commitdiff
templatepkg: small fix
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 18:58:22 +0000 (18:58 +0000)
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>
Sat, 7 Apr 2007 18:58:22 +0000 (18:58 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@310 04377dda-e619-0410-9926-eae83683ac58

trunk/src/templatepkg

index 5a0150e841f57eb716f29d99bd60a7fab51c93a4..a87b361dd0e5d1d6452656f35085ebf1400920d3 100755 (executable)
@@ -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