Skip to content

Commit 8e332c4

Browse files
author
Sengorius
committed
fixed the DockerExec self-update command, as a "cd $BASEDIR" was missing
1 parent 14816c4 commit 8e332c4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

DockerExec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,8 +531,10 @@ elif [[ "do" == "$ENVIRONMENT" ]]; then
531531

532532
# shortcut to list all docker containers
533533
elif [[ "self-update" == "$ACTION" || "selfupdate" == "$ACTION" ]]; then
534-
# get_latest_git_tag will cd us into the $BASE_DIR directory
534+
# get_latest_git_tag will NOT cd us into the $BASE_DIR directory
535535
LATEST_TAG=$(get_latest_git_tag)
536+
cd "$BASE_DIR" || (print_error "Could not change directory to $BASE_DIR" && exit 1)
537+
536538
git checkout --quiet "$LATEST_TAG"
537539
print_info "Updated the Docker Proxy Stack. Checked out version $LATEST_TAG." 1
538540

0 commit comments

Comments
 (0)