summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-01 18:30:14 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-01 18:30:14 +0200
commit5df0758ed74523fd4e2718031c6e6516c5581abe (patch)
tree020ec0085e9cf1a3927b1a132ea993931739b4df
parentf212c2da572e5c39d0017a74d1292ff30277b94c (diff)
downloadjenkins.debian.net-5df0758ed74523fd4e2718031c6e6516c5581abe.tar.xz
fix exec
-rwxr-xr-xbin/jenkins_node_wrapper.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index e19d5033..5646b1a0 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -63,10 +63,10 @@ allowed_cmds=()
if [[ "$*" =~ /bin/nc\ localhost\ 4949 ]] ; then
exec /bin/nc localhost 4949 ; croak "Exec failed";
elif [[ "$*" =~ rebootstrap_.* ]] ; then
- REBOOTSTRAPSH="/srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh"
shift
+ REBOOTSTRAPSH="/srv/jenkins/bin/chroot-run.sh sid minimal ./bootstrap.sh $@"
export LC_ALL=C
- exec "$REBOOTSTRAPSH $@"; croak "Exec failed";
+ exec $REBOOTSTRAPSH; 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";
elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /srv/reproducible-results/tmp.* ]] ; then