]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Add support for find without -executable.
[config/dotfiles.git] / setup.sh
index 6e5a69ae0b71c3fe3801fff8e8df89140be76e2d..8ef33df7544f137ea83635f302d480be02a078a8 100755 (executable)
--- 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$||'`