diff --git a/functions/_zgenom b/functions/_zgenom index e0ea6d4..cbb47b1 100644 --- a/functions/_zgenom +++ b/functions/_zgenom @@ -78,7 +78,7 @@ function _zgenom() { cmd) local -a commands commands=$ZGENOM_EXTENSIONS - for line in "${(@f)$(< $ZGEN_SOURCE/commands.txt)}"; do + for line in "${(@f)$(< "$ZGEN_SOURCE"/commands.txt)}"; do commands+=( "${line//\^/}" ) done _describe -t commands 'command' commands "$@" diff --git a/functions/zgenom-clone b/functions/zgenom-clone index 2f6ea00..a4cdb37 100755 --- a/functions/zgenom-clone +++ b/functions/zgenom-clone @@ -69,9 +69,9 @@ function zgenom-clone() { else command mkdir -p "${dir}" if [[ -n "$branch" ]] && [[ ! "$branch" = '___' ]]; then - eval "git clone --depth=1 $submodules -b $branch $url $dir" + eval "git clone --depth=1 $submodules -b $branch '$url' '$dir'" else - eval "git clone --depth=1 $submodules $url $dir" + eval "git clone --depth=1 $submodules '$url' '$dir'" fi fi }