From 2e7dde150ad15623c39a0e9dd4bd98bbfee54200 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 31 Dec 2021 20:40:41 -0800 Subject: [PATCH] zsh: gloned can now take more than one argument --- .config/shell/bin/gloned | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/shell/bin/gloned b/.config/shell/bin/gloned index 5a82458..6920b6d 100755 --- a/.config/shell/bin/gloned +++ b/.config/shell/bin/gloned @@ -1,8 +1,11 @@ #!/bin/bash # Git cLONE cD +# Can take extra arguments for git (ex: gloned url:/repo folder) -git clone "$1" || return $? +# shellcheck disable=SC2068,SC2016 + +git clone $@ || return $? if ! cd "$(echo "$1" | sed 's/\.git//g' | rev | cut -d '/' -f 1 | rev)";then echo 'Error: Could not `cd` into the repo' return 1