Skip to content

Commit

Permalink
auto: run_cmd: unique file name
Browse files Browse the repository at this point in the history
Just in case the same executable is used.

And use the basename just in case a full path is used.

Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Oct 24, 2024
1 parent 3836733 commit 0d1ee95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ run_loop() {
# args: what needs to be executed
run_cmd() {
_tap "${RESULTS_DIR}/cmd_\${1}" "\${@}"
_tap "${RESULTS_DIR}/cmd_\$(basename "\${1}")_\$(mktemp -u XXXXXX)" "\${@}"
}
set_max_threads
Expand Down

0 comments on commit 0d1ee95

Please sign in to comment.