summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-16 12:00:20 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-16 12:00:20 +0200
commitde1b9757e6d53cab65041e7b522660b2203237ce (patch)
tree580fbe3d5f8c0dbb21cb5681e7c021ace32ac697
parentfe2bccc385ab6906c4c496ad830778f20855f3f5 (diff)
downloadjenkins.debian.net-de1b9757e6d53cab65041e7b522660b2203237ce.tar.xz
reproducible: fix param
-rwxr-xr-xbin/jenkins_node_wrapper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index b6ea9eb0..095d55ae 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -67,7 +67,7 @@ elif [[ "$*" =~ rebootstrap_.* ]] ; then
REBOOTSTRAPSH="/srv/jenkins/bin/rebootstrap.sh $@"
export LC_ALL=C
exec $REBOOTSTRAPSH; croak "Exec failed";
-elif [ "$1" = "/srv/jenkins/bin/reproducible_info.sh" ] ; then
+elif [ "$0" = "/srv/jenkins/bin/reproducible_info.sh" ] ; then
exec /srv/jenkins/bin/reproducible_info.sh ; croak "Exec failed";
elif [ "$1" = "/srv/jenkins/bin/reproducible_build.sh" ] && ( [ "$2" = "1" ] || [ "$2" = "2" ] ) ; then
exec /srv/jenkins/bin/reproducible_build.sh "$2" "$3" "$4" "$5" ; croak "Exec failed";