Skip to content

Commit

Permalink
fix: syntax error when checking for realpath command (#259)
Browse files Browse the repository at this point in the history
Closes #257
  • Loading branch information
YuseiUeno committed May 9, 2022
1 parent b6f286b commit 05559eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zinit-install.zsh
Expand Up @@ -1190,7 +1190,7 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
"${${(M)OPTS[opt_-q,--quiet]:#1}:+, skip the -q/--quiet option for more information}.{rst}"; retval=4; }
}
} else {
if (( $+commands[realpath] )) && {
if (( $+commands[realpath] )) {
local rpv="$(realpath --version | head -n1 | sed -E 's/realpath (\(.*\))?//g')"
if is-at-least 8.23 $rpv; then
rel_url="$(realpath --relative-to="$local_dir/$dirname" "$url")" && \
Expand Down

0 comments on commit 05559eb

Please sign in to comment.