mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
core: fix cmp invocation in BSD systems
BSD cmp doesn't have the option of reading from stdin, so use process substitution instead.
This commit is contained in:
parent
dd1a72696f
commit
ff987384cf
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ zcompdump_metadata="\
|
|||
"
|
||||
|
||||
# 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"
|
||||
zcompdump_refresh=1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue