From 804ef23dca4abfb52d96c3a4419b5b7e560db324 Mon Sep 17 00:00:00 2001 From: murad <muradsaadeh9@gmail.com> Date: Tue, 28 Nov 2017 12:08:09 +0200 Subject: [PATCH] updated index --- participants/saadeh.murad/auto.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/participants/saadeh.murad/auto.sh b/participants/saadeh.murad/auto.sh index f7c5b3d..367aa57 100644 --- a/participants/saadeh.murad/auto.sh +++ b/participants/saadeh.murad/auto.sh @@ -9,14 +9,17 @@ pandoc -s -t html vinyl.md -o vinyl.html pandoc -s -t html linux.md -o linux.html pandoc -s -t html shopbot.md -o shopbot.html echo " all the files converted to HTML" -if [ "$#" -gt 0 ] # if there is something typed after bash auto.sh it will go into this loop +if [ "$#" -gt 0 ] +# if there is something typed after bash auto.sh it will go into this loop then cd .. cd .. -git pull -gitl add . -git commit -m "$*" # the push file comment will be the same exact words you typed after bash auto.sh -git pull && git push # to pull and push at the same time, just in case someone has pushed + git pull + git add . + git commit -m "$*" + # the push file comment will be the same exact words you typed after bash auto.sh + git pull && git push +# to pull and push at the same time, just in case someone has pushed else echo "Not uploading (empty commit messsage, type something next to bash auto.sh )" fi -- GitLab