8000 fixed the DockerExec self-update command, as a "cd $BASEDIR" was missing · Sengorius/docker-proxy-stack@8e332c4 · GitHub
[go: up one dir, main page]

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)
0