]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - setup.sh
setup.sh: Remove unnecessary check.
[config/dotfiles.git] / setup.sh
index da3e9bde524c231dd235db7befd895062c324088..74da7c167cf08c0a2c749730134b2a39df1b7ba2 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -7,7 +7,7 @@
 # Creates a new git repository in $1, adds a new remote named $2 and fetches
 # the master on $3. If the git repository already exists a new remote $2 for
 # $3 is added. If the remote already exists nothing happens.
-function git_remote_init_update() {
+git_remote_init_update() {
     # Make sure the requested directory exists.
     mkdir -p "$1"
     # Go to the target directory.
@@ -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