]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - all
support stupid rcp-style notation for ssh paths in ./all
[xonotic/xonotic.git] / all
diff --git a/all b/all
index 5d801ebe81e61dcaad5cb0d5dd9a43ecd0c70faf..d22618ee96b3c215c9957dce3de46ff28f18078d 100755 (executable)
--- a/all
+++ b/all
@@ -20,15 +20,21 @@ d0=`pwd`
 case "$cmd" in
        update|pull)
                base=`git config remote.origin.url`
-               base=${base%/xonotic.git}
+               base=${base%xonotic.git}
                for d in $repos; do
                        if [ -d "$d0/$d" ]; then
                                cd "$d0/$d"
-                               git config remote.origin.url "$base/${d##*/}.git"
+                               case "$d" in
+                                       .)
+                                               ;;
+                                       *)
+                                               git config remote.origin.url "$base${d##*/}.git"
+                                               ;;
+                               esac
                                git pull
                                cd "$d0"
                        else
-                               git clone "$base/${d##*/}.git" "$d0/$d"
+                               git clone "$base${d##*/}.git" "$d0/$d"
                        fi
                done
                ;;