diff --git a/rc_shared.sh b/rc_shared.sh index 034b6d4..a1c59d0 100644 --- a/rc_shared.sh +++ b/rc_shared.sh @@ -249,8 +249,10 @@ function blog { echo -e "\n\n$1\n\n"; } function pull { if [[ -d .git ]]; then + echo "Recognized git project, pulling latest changes." git pull --recurse-submodules else + echo "Not a git repo, attempting to sync with SFTP server." pull-clone fi } @@ -260,7 +262,7 @@ function push { echo "Recognized git project, promoting branch to stage and prod." git push && eval load-stage && eval load-prod else - echo "Not a git repo, attempting to sync to SFTP server." + echo "Not a git repo, attempting to sync with SFTP server." send-master fi }