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:
parent
13636097f5
commit
18f4c76730
@ -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 -
|
||||
}
|
||||
|
||||
|
@ -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 -
|
||||
}
|
||||
|
||||
|
@ -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 -
|
||||
}
|
||||
|
||||
|
@ -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 -
|
||||
}
|
||||
|
||||
|
@ -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 -
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user