Skip to content

Commit

Permalink
Fix issues when zgenom is in a path with spaces (tarjoilija#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
jandamm authored Jan 18, 2022
1 parent 1a9dcaf commit 6f43328
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/_zgenom
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
Expand Down
4 changes: 2 additions & 2 deletions functions/zgenom-clone
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 6f43328

Please sign in to comment.