summaryrefslogtreecommitdiff
path: root/code
diff options
context:
space:
mode:
authorJon Clausen <jac@nordu.net>2018-12-07 15:20:10 +0100
committerJon Clausen <jac@nordu.net>2018-12-07 15:20:10 +0100
commit17024499264063b0a758b4871c46fb358205f459 (patch)
tree309164753571254d6be9a4d7d040456a3deb278c /code
parentf262c05e7d8b1be30d652ce6867adc004ddf8802 (diff)
commit if relevant, but clean up always
Diffstat (limited to 'code')
-rwxr-xr-xcode/vlanscrape-wrapper10
1 files changed, 4 insertions, 6 deletions
diff --git a/code/vlanscrape-wrapper b/code/vlanscrape-wrapper
index 4fddc59..be7c608 100755
--- a/code/vlanscrape-wrapper
+++ b/code/vlanscrape-wrapper
@@ -46,13 +46,11 @@ then
fi
fi
-if [ -z $CommitMsg ]
+if [ ! -z $CommitMsg ]
then
- exit 0
+ git add .
+ git commit -m "$CommitMsg"
+ git push
fi
-git add .
-git commit -m "$CommitMsg"
-git push
-
rm ${TmpFile}