diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-18 22:16:10 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-18 22:16:25 +0000 |
commit | 8328c113b8d533edc92f0698d05b257a9eec98fa (patch) | |
tree | 927c71fba7b8c0a2578c2fbf16c7d9b9f79b1370 /hosts/alioth/home/groups/reproducible | |
parent | 16955949fd64ef9adf251a106cb7dfcbf99f35c0 (diff) | |
download | jenkins.debian.net-8328c113b8d533edc92f0698d05b257a9eec98fa.tar.xz |
reproducible: alioth reschedule script: pipe args to alioth instead of passing them through commal line, to avoid ssh screw up. Thanks to Lunar and Dhole for the help on figuring out how to gettig this working
Diffstat (limited to 'hosts/alioth/home/groups/reproducible')
-rwxr-xr-x | hosts/alioth/home/groups/reproducible/reschedule.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hosts/alioth/home/groups/reproducible/reschedule.sh b/hosts/alioth/home/groups/reproducible/reschedule.sh index ee6b9c1f..15d0166e 100755 --- a/hosts/alioth/home/groups/reproducible/reschedule.sh +++ b/hosts/alioth/home/groups/reproducible/reschedule.sh @@ -6,4 +6,8 @@ SSH_KNOWN_HOSTS="/home/groups/reproducible/private/ssh_known_hosts" # "dummy" is discarded by the server ssh (jenkins.debian.net in this case) and # it's there because otherwise the client ssh (this) tries to parse the options # for the remote command -LC_USER="$USER" ssh -i "$SSH_KEY" -o GlobalKnownHostsFile="$SSH_KNOWN_HOSTS" jenkins@jenkins.debian.net dummy "$@" + +# separate args with NULL and pass them through stdin to avoid ssh screw up +for arg in "$@" ; do + printf "%s\0" "$arg" +done | LC_USER="$USER" ssh -i "$SSH_KEY" -o GlobalKnownHostsFile="$SSH_KNOWN_HOSTS" jenkins@jenkins.debian.net -- dummy --null |