Commit ff987384 authored by Marc Cornellà's avatar Marc Cornellà
Browse files

core: fix cmp invocation in BSD systems

BSD cmp doesn't have the option of reading from stdin, so use process
substitution instead.
parent dd1a7269
...@@ -68,7 +68,7 @@ zcompdump_metadata="\ ...@@ -68,7 +68,7 @@ zcompdump_metadata="\
" "
# Delete the zcompdump file if OMZ zcompdump metadata changed # Delete the zcompdump file if OMZ zcompdump metadata changed
if ! cmp -s <(command grep '^#omz' "$ZSH_COMPDUMP" 2>/dev/null) <<< "$zcompdump_metadata"; then if ! cmp -s <(command grep '^#omz' "$ZSH_COMPDUMP" 2>/dev/null) <(echo "$zcompdump_metadata"); then
command rm -f "$ZSH_COMPDUMP" command rm -f "$ZSH_COMPDUMP"
zcompdump_refresh=1 zcompdump_refresh=1
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment