[SUCS Devel] [Git][sucssite/sucs-site][master] make the pull script do errors better

Imran Hussain imranh at sucs.org
Tue Jul 2 09:41:59 BST 2019



Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
56268f16 by Imran Hussain at 2019-07-02T08:41:18Z
make the pull script do errors better

- - - - -


1 changed file:

- htdocs/pull.php


Changes:

=====================================
htdocs/pull.php
=====================================
@@ -1,5 +1,14 @@
 <?php
 
-exec("cd ..; git reset --hard HEAD; git pull");
+exec("cd ..; git reset --hard HEAD; git pull", $retArr, $retVal);
+
+if ($retVal == 0) {
+	print(ok);
+	exit(0)
+}
+
+print("not ok\n");
+var_dump($retArr);
+var_dump($retVal);
 
 ?>
\ No newline at end of file



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/56268f161e4f2c75fa6afc3928d7aab8d5e48697

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/56268f161e4f2c75fa6afc3928d7aab8d5e48697
You're receiving this email because of your account on projects.sucs.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190702/2ec9f479/attachment-0001.html>


More information about the Devel mailing list