diff --git a/setup.sh b/setup.sh index b4f5e14..b468978 100755 --- a/setup.sh +++ b/setup.sh @@ -105,7 +105,7 @@ if [[ ! -d "$env_shared_dir" ]]; then cp -v "$env_shared_dir"/bin-shared/* ~/bin/ else echo -e "`date` - Already installed, updating." - git -C "$env_shared_dir" switch "$branch" + git -C "$env_shared_dir" switch "$BRANCH" git -C "$env_shared_dir" pull --recurse-submodules || \ ( echo "Failed to pull project, exiting." && return 1 ) cp -v "$env_shared_dir"/rc_shared.sh ~/.rc_shared