diff --git a/rc_shared.sh b/rc_shared.sh index fa8e9e5..568878f 100644 --- a/rc_shared.sh +++ b/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.