]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - archive.sh
Makefile: add, runs ./setup.sh
[config/dotfiles.git] / archive.sh
index 7522747b0dacb84ea44bc4d92c85521a599b0647..5f8a0d2954f6875cefef35f1fdacda95a8eed7a7 100755 (executable)
@@ -31,12 +31,14 @@ git_clone() {
 
 # Don't overwrite an existing file/directory.
 if test -e tmp; then
-    echo "tmp/ already exists!"
+    echo 'tmp/ already exists!'
     exit 1
 fi
 
 git_clone . tmp/dotfiles
 for name in browser shell vcs vim x11; do
+    test -d $name || continue
+
     echo "cloning $name to tmp/"
     git_clone $name tmp/dotfiles/$name
 done