command-not-found: fix zsh exit code
This commit is contained in:
parent
fd3d62bcdf
commit
52fc21b10f
|
@ -80,6 +80,8 @@ in
|
||||||
# Retry the command if we just installed it.
|
# Retry the command if we just installed it.
|
||||||
if [ $? = 126 ]; then
|
if [ $? = 126 ]; then
|
||||||
"$@"
|
"$@"
|
||||||
|
else
|
||||||
|
return 127
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# Indicate than there was an error so ZSH falls back to its default handler
|
# Indicate than there was an error so ZSH falls back to its default handler
|
||||||
|
|
Loading…
Reference in a new issue