Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 16e85bb7 authored by dleurs's avatar dleurs
Browse files

Push to github and froggit by default

parent 6331d636
No related branches found
No related tags found
No related merge requests found
......@@ -4,13 +4,12 @@ alias gof="cd /Users/dle/Documents/Flutter"
# FUNCTIONS
push() {
if [ $# -eq 0 ];
then
echo "No arguments supplied. You should use push \"initial commit\" [origin by default, else origin-froggit for both]";
else
commitMessage=$1
if [ "$commitMessage" = "" ];
if [ "$commitMessage" = "" ];
then
echo "No commit message";
else
......@@ -18,17 +17,17 @@ else
git add -A;
echo "\ngit commit -m \"${commitMessage}\";\n";
git commit -m $commitMessage;
if [ $# -eq 1 ];
if [ $# -eq 1 ];
then
echo "\ngit push origin master;\n";
git push origin master;
echo "\ngit push froggit master;\n";
git push froggit master;
else
if [ "$2" = "origin-froggit" ];
if [ "$2" = "origin" ];
then
echo "\ngit push origin master;\n";
git push origin master;
echo "\ngit push froggit master;\n";
git push froggit master;
fi
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment