From: Roland Haeder Date: Wed, 11 May 2016 15:56:20 +0000 (+0200) Subject: Added project 'jlandingpage' + revert-jprojects.sh X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a2f8eb2682649e623176f7d402fc529021adbc08;p=jprojects-scripts.git Added project 'jlandingpage' + revert-jprojects.sh Signed-off-by: Roland Haeder --- diff --git a/revert-jprojects.sh b/revert-jprojects.sh new file mode 100644 index 0000000..6ccf5eb --- /dev/null +++ b/revert-jprojects.sh @@ -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