Skip to content

Commit

Permalink
virtme-exec-run: escape commands/vars
Browse files Browse the repository at this point in the history
Otherwise variables (${xxx}) and commands ($(xxx)) will be executed when
printing what will be launched.

Signed-off-by: Matthieu Baerts <[email protected]>
  • Loading branch information
matttbe committed Aug 7, 2023
1 parent 12d116a commit e20deac
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 @@ -778,7 +778,7 @@ fi
# To exec different tests than the full suite
if [ -f "${VIRTME_EXEC_RUN}" ]; then
echo -e "\n\n\tNot running all tests but:\n\n-------- 8< --------\n$(sed "s/#.*//g;/^\s*$/d" "${VIRTME_EXEC_RUN}")\n-------- 8< --------\n\n"
echo -e "\n\n\tNot running all tests but:\n\n-------- 8< --------\n\$(sed "s/#.*//g;/^\s*$/d" "${VIRTME_EXEC_RUN}")\n-------- 8< --------\n\n"
source "${VIRTME_EXEC_RUN}"
# e.g.:
# run_selftest_one ./mptcp_join.sh -f
Expand Down

0 comments on commit e20deac

Please sign in to comment.