diff --git a/bashrc.sh b/bashrc.sh index 9473f66..0fc34d1 100755 --- a/bashrc.sh +++ b/bashrc.sh @@ -127,7 +127,7 @@ PROJECT_TERMUX="$HOME/.git-env-termux" function test-termux { if [[ -d "$PROJECT_TERMUX" ]]; then log "`date` - Updating '$PROJECT_TERMUX'.\n" - git -C "$PROJECT_TERMUX" switch "$branch" + git -C "$PROJECT_TERMUX" switch "$BRANCH" git -C "$PROJECT_TERMUX" pull --recurse-submodules || \ ( echo "Failed to pull project, exiting." && return 1 ) else