From 17024499264063b0a758b4871c46fb358205f459 Mon Sep 17 00:00:00 2001 From: Jon Clausen Date: Fri, 7 Dec 2018 15:20:10 +0100 Subject: commit if relevant, but clean up always --- code/vlanscrape-wrapper | 10 ++++------ 1 file 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} -- cgit v1.1