Skip to content

Commit

Permalink
scripts: Fix get_default_container_tag not running in WKDEV_SDK dir
Browse files Browse the repository at this point in the history
Closes #32
  • Loading branch information
TingPing committed Jul 29, 2024
1 parent 1428427 commit 0d95501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/settings.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ get_default_container_registry_user_name() { echo "${WKDEV_SDK_CONTAINER_REGISTR
get_default_container_tag() {
local default='latest'

if [[ "$(git rev-parse --abbrev-ref HEAD)" =~ tag/(.*) ]]; then
if [[ "$(git -C "${WKDEV_SDK}" rev-parse --abbrev-ref HEAD)" =~ tag/(.*) ]]; then
default="${BASH_REMATCH[1]}"
fi

Expand Down

0 comments on commit 0d95501

Please sign in to comment.