mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
fix: syntax error when checking for realpath command (#259)
Closes #257
This commit is contained in:
parent
b6f286b2c7
commit
05559ebdbc
|
|
@ -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")" && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue