Verified Commit ee995b43 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

node wrapper: accept both scp -p and plain scp



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent 41fd4fd9
...@@ -60,8 +60,20 @@ shift ...@@ -60,8 +60,20 @@ shift
if [[ "$*" = "/bin/true" ]] ; then if [[ "$*" = "/bin/true" ]] ; then
exec /bin/true ; croak "Exec failed"; exec /bin/true ; croak "Exec failed";
elif [ "$1" = scp ] && [ "$2" = -f ]; then elif [ "$1" = scp ]; then
case "$#" in
3)
if [ "$2" = -f ]; then
exec scp -f "$3"; croak "Exec failed"; exec scp -f "$3"; croak "Exec failed";
fi
;;
4)
if [ "$2" = -p ] && [ "$3" = -f ]; then
exec scp -p -f "$4"; croak "Exec failed";
fi
;;
esac
croak "Unknown scp command: $# $*"
elif [[ "$*" = 'rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX)' ]] ; then elif [[ "$*" = 'rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX)' ]] ; then
exec rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX) ; croak "Exec failed"; exec rm -v $(mktemp --tmpdir=/tmp read-only-fs-test-XXXXXX) ; croak "Exec failed";
elif [[ "$*" = "cleanup_nodes /srv/jenkins/bin/reproducible_slay.sh" ]] ; then elif [[ "$*" = "cleanup_nodes /srv/jenkins/bin/reproducible_slay.sh" ]] ; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment