From 0c16c0bdd2d829e991c2b34419470d903e7ea52d Mon Sep 17 00:00:00 2001 From: Jack-Benny Persson Date: Thu, 12 Dec 2013 15:27:01 +0100 Subject: [PATCH] Fixat 0 samt lagt in riktigt git push --- push.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/push.sh b/push.sh index f0d7043..0c5f46e 100755 --- a/push.sh +++ b/push.sh @@ -28,7 +28,7 @@ Repo=$HOME/testgit Msg="$1" # Sanity checks -if [ $1 -ne 1 ]; then +if [ $# -ne 1 ]; then echo 'Usage: $0 "commit message"' exit 2 fi @@ -62,7 +62,7 @@ if [ "$ShallWe" = "y" ]; then echo "Adding, commiting & pushing" git add -A git commit -m "$Msg" - echo "Fake push" + git push elif [ "$ShallWe" = "n" ]; then echo "Aborting" exit 1