Skip to content

Commit

Permalink
Fix wait.sh/copy.sh quoting for exec'd/wrapped cmd.
Browse files Browse the repository at this point in the history
Add "Running" comment to copy.sh to mirror wait.sh. Fix minor formating
issue in copy.sh.
  • Loading branch information
kanaka committed May 9, 2024
1 parent d8007ed commit 0bc75c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions scripts/copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ dst_dir="${1}"; shift || die 2 "Usage: ${0} [-T|--template] SRC_DIR DST_DIR"
done

if [ "${*}" ]; then
exec "${@}"
echo "Running: ${*}"
exec ${@}
else
true
true
fi
2 changes: 1 addition & 1 deletion scripts/wait.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ done

if [ "${*}" ]; then
echo "Running: ${*}"
exec ${*}
exec ${@}
fi

0 comments on commit 0bc75c1

Please sign in to comment.