aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Fenoll <[email protected]>2018-10-03 10:38:27 +0200
committerPierre Fenoll <[email protected]>2018-10-03 10:38:27 +0200
commit8e8f3e7879e5f003259c78789064f642cf5c8465 (patch)
treec2b8a8ba73690d2bff9739055d67feef3a67ad46
parent20c83d424e8bbbb7a557e8007869ffc0de677a73 (diff)
downloadkerl-8e8f3e7879e5f003259c78789064f642cf5c8465.tar.gz
kerl-8e8f3e7879e5f003259c78789064f642cf5c8465.tar.bz2
kerl-8e8f3e7879e5f003259c78789064f642cf5c8465.zip
if not supplied with a build name use the release name (fixes #303)
-rwxr-xr-xkerl7
1 files changed, 5 insertions, 2 deletions
diff --git a/kerl b/kerl
index 47c853e..026a5f3 100755
--- a/kerl
+++ b/kerl
@@ -1888,11 +1888,14 @@ case "$1" in
fi
do_git_build "$3" "$4" "$5"
else
- if [ $# -lt 3 ]; then
+ if [ $# -eq 2 ]; then
+ do_normal_build "$2" "$2"
+ elif [ $# -eq 3 ]; then
+ do_normal_build "$2" "$3"
+ else
echo "usage: $0 $1 <release> <build_name>"
exit 1
fi
- do_normal_build "$2" "$3"
fi
;;
install)