generated from me/template-mit
Modify how the default branch is determined.
This commit is contained in:
19
rc_shared.sh
19
rc_shared.sh
@@ -57,13 +57,21 @@ alias scan="nmap -A -p- --script=vuln "
|
|||||||
|
|
||||||
# Related specifically to this project. #
|
# Related specifically to this project. #
|
||||||
|
|
||||||
function update-shared {
|
branch="$BRANCH"
|
||||||
log "`date` - Reloading the '~/.rc_shared' file from env-shared.\n"
|
if [[ -z "$branch" ]]; then
|
||||||
branch="$1"
|
branch="$PROD_GIT_BRANCH"
|
||||||
|
fi
|
||||||
if [[ -z "$branch" ]]; then
|
if [[ -z "$branch" ]]; then
|
||||||
branch="dev"
|
branch="dev"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
function update-shared {
|
||||||
|
log "`date` - Reloading the '~/.rc_shared' file from env-shared.\n"
|
||||||
|
|
||||||
|
if [[ -n "$1" ]]; then
|
||||||
|
branch="$1"
|
||||||
|
fi
|
||||||
|
|
||||||
dir="shared-rc-deleteme"
|
dir="shared-rc-deleteme"
|
||||||
|
|
||||||
git clone https://git.hyperling.com/me/env-shared \
|
git clone https://git.hyperling.com/me/env-shared \
|
||||||
@@ -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 #
|
||||||
|
|||||||
Reference in New Issue
Block a user