From 508e5b4a4627311c8c39560738dd212cb7e885be Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 3 May 2021 15:36:27 -0400 Subject: [PATCH] Fix suse run_remote_parts Behave more consistently --- confluent_osdeploy/suse15/profiles/hpc/scripts/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/functions b/confluent_osdeploy/suse15/profiles/hpc/scripts/functions index 926bcf64..a1da8084 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/functions +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/functions @@ -16,6 +16,7 @@ run_remote() { tmpdir=$(mktemp -d) echo Executing in $tmpdir cd $tmpdir + mkdir -p $(dirname $1) curl -f -sS https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/$1 > $1 if [ $? != 0 ]; then echo $requestedcmd failed to download; return 1; fi chmod +x $1 @@ -61,6 +62,7 @@ run_remote_python() { tmpdir=$(mktemp -d) echo Executing in $tmpdir cd $tmpdir + mkdir -p $(dirname $1) curl -f -sS https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/$1 > $1 if [ $? != 0 ]; then echo "'$*'" failed to download; return 1; fi python3 $*