From 77cfffee6177fb0421fa0fce15d6a1875bde4816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20W=C3=BChrer?= Date: Sat, 18 May 2024 21:04:34 +0200 Subject: manuals, sum-down, radix --- clone | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100755 clone (limited to 'clone') 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 -- cgit v1.2.3