2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-11 22:06:33 +00:00
confluent/confluent_osdeploy/suse15/profiles/hpc/scripts/functions
Jarrod Johnson 910490cc74 Add arguments to the run_remote functions
This will help provide flexibility in invoking remote scripts
without hardcoding arguments into the scripts
2020-07-13 17:08:38 -04:00

16 lines
302 B
Plaintext

run_remote() {
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
chmod +x $1
cmd=$(shift)
./$cmd $*
cd -
}
run_remote_python() {
cd $(mktemp -d)
curl -f https://$mgr/confluent-public/os/$profile/scripts/$1 > $1
python3 $*
cd -
}