Allow using load-prod and load-stage with any branch, and default to dev if nothing is provided.

This commit is contained in:
2025-10-15 05:47:01 -07:00
parent 73e527640f
commit d81c424878

View File

@@ -893,10 +893,13 @@
function load-branch {
rcvr="$1" # branch which we want to modify
base="$2" # branch with the changes we want
if [[ "$1" == main ]]; then
if [[ "$rcvr" == main ]]; then
echo "Are you nuts, fool!? Not main! Do it manually!"
exit 1
fi
if [[ -z "$base" ]]; then
base="dev"
fi
git switch "$base"
git branch -f "$rcvr" "$base"
#git switch "$rcvr"
@@ -904,8 +907,8 @@
#git switch "$base"
git branch
}
alias load-prod="load-branch prod dev"
alias load-stage="load-branch stage dev"
alias load-prod="load-branch prod"
alias load-stage="load-branch stage"
- name: General | Account Management | Users | Files | Common Variable
set_fact: