diff --git a/participants/fares.ahmad/auto.sh b/participants/fares.ahmad/auto.sh index 4bf5a8ece943c3cc0ce00d267bc0cd2a9f792df4..e04a0cb3e7fec932f16a7c78d6cf1cefd32dfba7 100644 --- a/participants/fares.ahmad/auto.sh +++ b/participants/fares.ahmad/auto.sh @@ -12,7 +12,15 @@ pandoc -s -t html vinyl.md -o vinyl.html pandoc -s -t html principles.md -o principles.html echo "All files converteds to html" echo "Pull" + +if [ "$#" -gt 0 ] +then +cd .. +cd .. git pull git add --all -git commit -m "update" +git commit -m "$*" git pull && git push +else + echo "Empty commit message" +fi