summaryrefslogtreecommitdiff
path: root/clone
diff options
context:
space:
mode:
authorDavid Wührer <def@gmx.at>2022-11-03 19:23:18 +0100
committerDavid Wührer <def@gmx.at>2022-11-03 19:23:18 +0100
commitbe555f29f47f81993c12bf76065a0cb6bb0fee96 (patch)
treeeb5991d8b0309609746fe612068faeadf0c52e0b /clone
parente60829f7b9c61dc870173a8dd8f2f85c17517ec4 (diff)
Add a few old things.
Diffstat (limited to 'clone')
-rwxr-xr-xclone12
1 files changed, 12 insertions, 0 deletions
diff --git a/clone b/clone
new file mode 100755
index 0000000..bbf920f
--- /dev/null
+++ b/clone
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -eu
+
+for arg in "$@"
+do
+ dir=${arg#*:}
+ dir="$HOME"/src/${dir%/*}
+ mkdir -pv "$dir"
+ cd "$dir"
+ git clone --verbose --progress "$arg"
+done