summaryrefslogtreecommitdiff
path: root/standalone/linux/runshell
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-09-19 13:31:18 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-09-19 13:33:00 -0400
commitfec663ac94161f9193ca1c65d9afe39eed0c387a (patch)
tree3d37f6e83d19d83ae348fb8c26d6d8fa78333821 /standalone/linux/runshell
parent4cbdd954447f04ac0b0fb79bd65ef83fa420c859 (diff)
guard against runshell loop
Diffstat (limited to 'standalone/linux/runshell')
-rwxr-xr-xstandalone/linux/runshell3
1 files changed, 3 insertions, 0 deletions
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)"