]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
setup.sh: Remove unnecessary check.
authorSimon Ruderich <simon@ruderich.org>
Wed, 3 Jun 2009 14:06:41 +0000 (16:06 +0200)
committerSimon Ruderich <simon@ruderich.org>
Wed, 3 Jun 2009 14:07:34 +0000 (16:07 +0200)
This was introduced in fbc6b0059f5345e8974bd713dc041a4e39e18c73 when there was
a static list used for the projects. With find this is no longer necessary.

setup.sh

index 50df24d8ccc5223a5adb6f80b58f6641cc7abc86..74da7c167cf08c0a2c749730134b2a39df1b7ba2 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -61,8 +61,8 @@ if [ "$#" -eq "0" ]; then
         # Skip this directory to prevent an infinite loop.
         [ "$project" = "./.git" ] && continue
 
-        [ -d "$project" ] && (echo "running setup.sh in '$project'";
-                            cd "$project/.."; ./setup.sh > /dev/null)
+        echo "running setup.sh in '$project'"
+        ( cd "$project/.."; ./setup.sh > /dev/null )
     done
 # Create git repository if necessary and/or additional remotes and fetch them.
 elif [ "$#" -ge "2" ]; then