From 16b3c2e4f69bd40528175bd2949f98ff65c7adbd Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 7 Mar 2010 16:06:20 +0100 Subject: [PATCH] setup.sh: Add support for find without -executable. --- setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 6e5a69a..8ef33df 100755 --- a/setup.sh +++ b/setup.sh @@ -57,9 +57,11 @@ git_remote_init_update() { # Run setup.sh in each project. if [ "$#" -eq "0" ]; then - for path in `find . -name setup.sh -type f -executable`; do + for path in `find . -name setup.sh -type f`; do # Skip this directory to prevent an infinite loop. [ "$path" = "./setup.sh" ] && continue + # Skip non executable setup.sh files as an easy way to deactivate one. + [ ! -x "$path" ] && continue project=`echo "$path" | sed 's|/setup.sh$||'` -- 2.43.2