From: Roland Häder 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=25ad5f6cdffc9a11c60c9ea59e0e728d2beb8cad;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