zsh: gloned can now take more than one argument
This commit is contained in:
parent
677193fa3a
commit
2e7dde150a
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue