From: Simon Ruderich Date: Wed, 3 Jun 2009 14:06:41 +0000 (+0200) Subject: setup.sh: Remove unnecessary check. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=d4c457c604ae65ee454d8c7464ff4a49211c483f;p=config%2Fdotfiles.git setup.sh: Remove unnecessary check. This was introduced in fbc6b0059f5345e8974bd713dc041a4e39e18c73 when there was a static list used for the projects. With find this is no longer necessary. --- diff --git a/setup.sh b/setup.sh index 50df24d..74da7c1 100755 --- 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