Skip to content

Commit

Permalink
Actually apptainer wasn't doing anything wrong, I was just putting th…
Browse files Browse the repository at this point in the history
…e flags after the SIF name
  • Loading branch information
matyasselmeci committed Feb 1, 2024
1 parent 281f656 commit a6b040a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions sbin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 '$*'"
}


Expand Down

0 comments on commit a6b040a

Please sign in to comment.