Fixat 0 samt lagt in riktigt git push
This commit is contained in:
parent
6c0c04377d
commit
0c16c0bdd2
4
push.sh
4
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user