2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-24 20:21:53 +00:00

Fix end code for run_remote

Output was missing due to shift. Save cmdline before
shifting and use it on way out.
This commit is contained in:
Jarrod Johnson 2020-08-21 10:33:56 -04:00
parent 13636097f5
commit 18f4c76730
5 changed files with 15 additions and 10 deletions

View File

@ -1,5 +1,6 @@
run_remote() {
echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
requestedcmd="'$*'"
echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
chmod +x $1
@ -9,7 +10,7 @@ run_remote() {
fi
shift
./$cmd $*
echo "'$*' exited with code $?"
echo "$requestedcmd exited with code $?"
cd -
}

View File

@ -1,5 +1,6 @@
run_remote() {
echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
requestedcmd="'$*'"
echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
chmod +x $1
@ -9,7 +10,7 @@ run_remote() {
fi
shift
./$cmd $*
echo "'$*' exited with code $?"
echo "$requestedcmd exited with code $?"
cd -
}

View File

@ -1,5 +1,6 @@
run_remote() {
echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
requestedcmd="'$*'"
echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
chmod +x $1
@ -9,7 +10,7 @@ run_remote() {
fi
shift
./$cmd $*
echo "'$*' exited with code $?"
echo "$requestedcmd exited with code $?"
cd -
}

View File

@ -1,5 +1,6 @@
run_remote() {
echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
requestedcmd="'$*'"
echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
chmod +x $1
@ -9,7 +10,7 @@ run_remote() {
fi
shift
./$cmd $*
echo "'$*' exited with code $?"
echo "$requestedcmd exited with code $?"
cd -
}

View File

@ -1,12 +1,13 @@
run_remote() {
echo Running "'$*' from https://$mgr/confluent-public/os/$profile/scripts/"
requestedcmd="'$*'"
echo Running $requestedcmd from https://$mgr/confluent-public/os/$profile/scripts/"
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
chmod +x $1
cmd=$1
shift
./$cmd $*
echo "'$*' exited with code $?"
echo "$requestedcmd exited with code $?"
cd -
}