generated from me/template-mit
Add even shorter aliases for sending and pushing clones, and also allow them to handle Git repos!
This commit is contained in:
16
rc_shared.sh
16
rc_shared.sh
@@ -117,6 +117,22 @@ function today { date "+%Y%m%d"; }
|
||||
function log { echo -e "$1"; }
|
||||
function blog { echo -e "\n\n$1\n\n"; }
|
||||
|
||||
function pull {
|
||||
if [[ -d .git ]]; then
|
||||
git pull --recurse-submodules
|
||||
else
|
||||
pull-clone
|
||||
fi
|
||||
}
|
||||
|
||||
function push {
|
||||
if [[ -d .git ]]; then
|
||||
git push && load-stage && load-prod
|
||||
else
|
||||
send-master
|
||||
fi
|
||||
}
|
||||
|
||||
# Enhance Bin Scripts #
|
||||
|
||||
# MASTER and CLONE folders.
|
||||
|
||||
Reference in New Issue
Block a user