summaryrefslogtreecommitdiff
path: root/clone
diff options
context:
space:
mode:
Diffstat (limited to 'clone')
-rwxr-xr-xclone24
1 files changed, 0 insertions, 24 deletions
diff --git a/clone b/clone
deleted file mode 100755
index cfad1af..0000000
--- a/clone
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-set -eu
-
-args=()
-for url in "$@"
-do
- case $url in
- https://*|git://*)
- dir=${url#*//}
- dir=${dir%/*}
- ;; git@*)
- dir=${url#git@}
- dir=${dir/://}
- dir=${dir%/*}
- ;; *)
- args+=("$url")
- continue
- esac
- mkdir -vp ~/src/"$dir"
- cd ~/src/"$dir"
- git clone --verbose --progress "${args[@]}" "$url"
- args=()
-done