Skip to content

Commit

Permalink
Made project's root the working directory for host scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-zaroda committed Dec 22, 2024
1 parent b72e3fc commit 93c1fee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/templates/draky.template
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ execute_core() {
LOCAL_COMMAND_VARS_STRING="$(docker exec --user="$DRAKY_HOST_UID:$DRAKY_HOST_GID" "${CONTAINER_NAME}" dk-core core __internal get-command-vars "$1" < /dev/null)"
local LOCAL_COMMAND_VARS
readarray -t LOCAL_COMMAND_VARS <<<"$LOCAL_COMMAND_VARS_STRING"
cd "$PROJECT_ROOT" || exit 1
env "${LOCAL_COMMAND_VARS[@]}" "${LOCAL_COMMAND}" "$@" < /dev/stdin
exit "$?"
fi
Expand Down

0 comments on commit 93c1fee

Please sign in to comment.