Skip to content

Commit

Permalink
Use exec to run cwd target (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-thm committed Apr 16, 2024
1 parent 6d0487b commit 60a5472
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions multitool/private/cwd.template.sh
@@ -1,8 +1,4 @@
#!/usr/bin/env bash

tool="{{tool}}"
execdir="$PWD"

pushd "$BUILD_WORKING_DIRECTORY" > /dev/null
"$execdir/$tool" "$@"
popd > /dev/null
tool="$PWD/{{tool}}"
cd "$BUILD_WORKING_DIRECTORY" && exec "$tool" "$@"

0 comments on commit 60a5472

Please sign in to comment.