Fixat 0 samt lagt in riktigt git push

This commit is contained in:
Jack-Benny Persson 2013-12-12 15:27:01 +01:00
parent 6c0c04377d
commit 0c16c0bdd2

View File

@ -28,7 +28,7 @@ Repo=$HOME/testgit
Msg="$1" Msg="$1"
# Sanity checks # Sanity checks
if [ $1 -ne 1 ]; then if [ $# -ne 1 ]; then
echo 'Usage: $0 "commit message"' echo 'Usage: $0 "commit message"'
exit 2 exit 2
fi fi
@ -62,7 +62,7 @@ if [ "$ShallWe" = "y" ]; then
echo "Adding, commiting & pushing" echo "Adding, commiting & pushing"
git add -A git add -A
git commit -m "$Msg" git commit -m "$Msg"
echo "Fake push" git push
elif [ "$ShallWe" = "n" ]; then elif [ "$ShallWe" = "n" ]; then
echo "Aborting" echo "Aborting"
exit 1 exit 1