From a6b040aff393ace03822b15bd49d793c30615277 Mon Sep 17 00:00:00 2001 From: Matyas Selmeci Date: Thu, 1 Feb 2024 13:05:22 -0600 Subject: [PATCH] Actually apptainer wasn't doing anything wrong, I was just putting the flags after the SIF name --- sbin/entrypoint.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sbin/entrypoint.sh b/sbin/entrypoint.sh index ad6a9ee..1cf2eec 100755 --- a/sbin/entrypoint.sh +++ b/sbin/entrypoint.sh @@ -8,16 +8,9 @@ htcondor_supervisord_config=/etc/supervisord.d/10-htcondor.conf safe_exec () { - local cmd - cmd=("$@") - # apptainer run sometimes sets the first argument to '--' which is a syntax error - if [[ ${cmd[0]} = '--' ]]; then - unset cmd[0] - cmd=("${cmd[@]}") # fix indices - fi - exec "${cmd[@]}" + exec "$@" # we should not get here: - fail "Exec failed with $? on command '${cmd[*]}'" + fail "Exec failed with $? on command '$*'" }