generated from me/template-mit
Also add more output for the pull function.
This commit is contained in:
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user