From 0c1c51d2edfbd81528a5dd16ad147ceffc224213 Mon Sep 17 00:00:00 2001
From: Ahmad Fares <ahmed19962006@windowslive.com>
Date: Mon, 27 Nov 2017 11:43:23 +0200
Subject: [PATCH] ahmad

---
 participants/fares.ahmad/auto.sh | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/participants/fares.ahmad/auto.sh b/participants/fares.ahmad/auto.sh
index 4bf5a8e..e04a0cb 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
-- 
GitLab