aboutsummaryrefslogtreecommitdiff
path: root/trunk
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-07 18:58:22 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-07 18:58:22 +0000
commite1b4f3e0aea6e9f1458b1477e3b42cd28f392b0d (patch)
tree40755547025ec9a932e021a78def2a65ba185077 /trunk
parente852d276a551d97b48d18f934c61e8c4cfd51e27 (diff)
downloadsimplepkg-e1b4f3e0aea6e9f1458b1477e3b42cd28f392b0d.tar.gz
simplepkg-e1b4f3e0aea6e9f1458b1477e3b42cd28f392b0d.tar.bz2
templatepkg: small fix
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@310 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk')
-rwxr-xr-xtrunk/src/templatepkg14
1 files changed, 11 insertions, 3 deletions
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