From fec663ac94161f9193ca1c65d9afe39eed0c387a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 19 Sep 2013 13:31:18 -0400 Subject: guard against runshell loop --- standalone/linux/runshell | 3 +++ standalone/osx/git-annex.app/Contents/MacOS/runshell | 3 +++ 2 files changed, 6 insertions(+) (limited to 'standalone') diff --git a/standalone/linux/runshell b/standalone/linux/runshell index a36e49083..6e2e21906 100755 --- a/standalone/linux/runshell +++ b/standalone/linux/runshell @@ -19,6 +19,9 @@ if [ ! -e "$base/bin/git" ]; then echo "** base directory $base does not contain bin/git" >&2 exit 1 fi +if [ -n "$GIT_ANNEX_STANDLONE_ENV" ]; then + echo "** runshell loop detected!"> &2 +fi # Get absolute path to base, to avoid breakage when things change directories. orig="$(pwd)" diff --git a/standalone/osx/git-annex.app/Contents/MacOS/runshell b/standalone/osx/git-annex.app/Contents/MacOS/runshell index 9f1457e25..5094ad0b2 100755 --- a/standalone/osx/git-annex.app/Contents/MacOS/runshell +++ b/standalone/osx/git-annex.app/Contents/MacOS/runshell @@ -21,6 +21,9 @@ if [ ! -e "$bundle/git" ]; then echo "** bundle directory $bundle does not contain git" >&2 exit 1 fi +if [ -n "$GIT_ANNEX_STANDLONE_ENV" ]; then + echo "** runshell loop detected!"> &2 +fi # Get absolute path to base, to avoid breakage when things change directories. orig="$(pwd)" -- cgit v1.2.3