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 {
|
function pull {
|
||||||
if [[ -d .git ]]; then
|
if [[ -d .git ]]; then
|
||||||
|
echo "Recognized git project, pulling latest changes."
|
||||||
git pull --recurse-submodules
|
git pull --recurse-submodules
|
||||||
else
|
else
|
||||||
|
echo "Not a git repo, attempting to sync with SFTP server."
|
||||||
pull-clone
|
pull-clone
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
@@ -260,7 +262,7 @@ function push {
|
|||||||
echo "Recognized git project, promoting branch to stage and prod."
|
echo "Recognized git project, promoting branch to stage and prod."
|
||||||
git push && eval load-stage && eval load-prod
|
git push && eval load-stage && eval load-prod
|
||||||
else
|
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
|
send-master
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user