summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-01 16:15:44 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-01 16:15:44 +0200
commit1e9264444a3bb7c560ab9a69381abb73627f5959 (patch)
treebfbfcd28b6af19e13c1ef7b7cb4d68c4f16ddd8f /bin
parent72672a5a8806f060398e5b60aebecb8f249d7c98 (diff)
downloadjenkins.debian.net-1e9264444a3bb7c560ab9a69381abb73627f5959.tar.xz
make code more robust
Diffstat (limited to 'bin')
-rwxr-xr-xbin/jenkins_node_wrapper.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index 18444119..5760462d 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -68,11 +68,11 @@ elif [[ "$0" =~ rebootstrap_.* ]] ; then
export LC_ALL=C
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";
+ exec /srv/jenkins/bin/reproducible_build.sh "$2" "$3" "$4" "$5" ; croak "Exec failed";
elif [[ "$*" =~ rsync\ --server\ --sender\ .*\ .\ /srv/reproducible-results/tmp.* ]] ; then
- exec rsync --server --sender $4 . $6 ; croak "Exec failed";
+ exec rsync --server --sender "$4" . "$6" ; croak "Exec failed";
elif [[ "$*" =~ rm\ -r\ /srv/reproducible-results/tmp.* ]] ; then
- exec rm -r $3 ; croak "Exec failed";
+ exec rm -r "$3" ; croak "Exec failed";
elif [[ "$*" =~ reproducible_setup_pbuilder_unstable_.*_.* ]] ; then
exec /srv/jenkins/bin/reproducible_setup_pbuilder.sh unstable ; croak "Exec failed";
elif [[ "$*" =~ reproducible_setup_pbuilder_testing_.*_.* ]] ; then