Modify how the default branch is determined.

This commit is contained in:
2026-04-17 15:46:04 -07:00
parent 21b2ddf4a5
commit 209af03777

View File

@@ -57,12 +57,20 @@ alias scan="nmap -A -p- --script=vuln "
# Related specifically to this project. # # Related specifically to this project. #
branch="$BRANCH"
if [[ -z "$branch" ]]; then
branch="$PROD_GIT_BRANCH"
fi
if [[ -z "$branch" ]]; then
branch="dev"
fi
function update-shared { function update-shared {
log "`date` - Reloading the '~/.rc_shared' file from env-shared.\n" log "`date` - Reloading the '~/.rc_shared' file from env-shared.\n"
branch="$1"
if [[ -z "$branch" ]]; then if [[ -n "$1" ]]; then
branch="dev" branch="$1"
fi fi
dir="shared-rc-deleteme" dir="shared-rc-deleteme"
@@ -99,11 +107,12 @@ alias shared-reload="update-shared"
project="$HOME/.env-shared" project="$HOME/.env-shared"
function update-shared2 { function update-shared2 {
if [[ ! -d $project ]]; then if [[ ! -d $project ]]; then
git clone https://git.hyperling.com/me/env-shared \
$dir --branch=$branch
fi fi
} }
if [[ -d $project ]]; then if [[ -d $project ]]; then
git -C $project status git -C $project status | grep TBD
fi & fi &
# Shortcuts # # Shortcuts #