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