diff options
author | Pierre Fenoll <[email protected]> | 2018-10-03 10:38:27 +0200 |
---|---|---|
committer | Pierre Fenoll <[email protected]> | 2018-10-03 10:38:27 +0200 |
commit | 8e8f3e7879e5f003259c78789064f642cf5c8465 (patch) | |
tree | c2b8a8ba73690d2bff9739055d67feef3a67ad46 | |
parent | 20c83d424e8bbbb7a557e8007869ffc0de677a73 (diff) | |
download | kerl-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-x | kerl | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |