summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-10-16 16:57:41 +0200
committerHolger Levsen <holger@layer-acht.org>2015-10-16 16:57:41 +0200
commitf8b00b162f25a93d5f07059dd4a10d33ce9ed0e8 (patch)
tree1bf540f18a4e8140e48d9a4eb57461da01133e13 /bin
parent9b33c4d587e733f93b8b7fe2661db46c041f02f3 (diff)
downloadjenkins.debian.net-f8b00b162f25a93d5f07059dd4a10d33ce9ed0e8.tar.xz
reproducible arch: this script can be run without params
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build_arch_pkg.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/reproducible_build_arch_pkg.sh b/bin/reproducible_build_arch_pkg.sh
index 57cb4266..72163089 100755
--- a/bin/reproducible_build_arch_pkg.sh
+++ b/bin/reproducible_build_arch_pkg.sh
@@ -109,8 +109,7 @@ BUILDER="${JOB_NAME#reproducible_builder_}/${BUILD_ID}"
# determine mode
#
if [ "$1" = "" ] ; then
- echo "Error, needs at least one parameter."
- exit 1
+ MODE="master"
elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
MODE="$1"
SRCPACKAGE="$2"
@@ -126,8 +125,6 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
mv -v /tmp/$PKG $TMPDIR/b$mode
echo "$(date -u) - build #$MODE for $SRCPACKAGE on $HOSTNAME done."
exit 0
-elif [ "$2" != "" ] ; then
- MODE="master"
fi
#