diff options
author | Jon Clausen <jac@nordu.net> | 2018-12-07 15:20:10 +0100 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-12-07 15:20:10 +0100 |
commit | 17024499264063b0a758b4871c46fb358205f459 (patch) | |
tree | 309164753571254d6be9a4d7d040456a3deb278c /code/vlanscrape-wrapper | |
parent | f262c05e7d8b1be30d652ce6867adc004ddf8802 (diff) |
commit if relevant, but clean up always
Diffstat (limited to 'code/vlanscrape-wrapper')
-rwxr-xr-x | code/vlanscrape-wrapper | 10 |
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} |