]> git.mxchange.org Git - jprojects-scripts.git/commitdiff
Added project 'jlandingpage' + revert-jprojects.sh
authorRoland Haeder <rhaeder@cho-time.de>
Wed, 11 May 2016 15:56:20 +0000 (17:56 +0200)
committerRoland Haeder <rhaeder@cho-time.de>
Wed, 11 May 2016 15:56:20 +0000 (17:56 +0200)
Signed-off-by: Roland Haeder <rhaeder@cho-time.de>
revert-jprojects.sh [new file with mode: 0644]

diff --git a/revert-jprojects.sh b/revert-jprojects.sh
new file mode 100644 (file)
index 0000000..6ccf5eb
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+. ./.jprojects.sh || exit 255
+
+for project in ${LIST}; do
+       if [ ! -d "${JPROJECTS_HOME}/${project}" ]
+       then
+               continue
+       fi
+
+       echo "$0: Reverting '${project}' ..."
+       cd "${JPROJECTS_HOME}/${project}"
+       git reset --hard
+done
+
+echo "$0: All done."
+exit 0