command-not-found: fix zsh exit code

This commit is contained in:
Sheena Artrip
2021-01-24 20:14:16 +01:00
committed by Bjørn Forsman
parent fd3d62bcdf
commit 52fc21b10f
@@ -80,6 +80,8 @@ in
# Retry the command if we just installed it.
if [ $? = 126 ]; then
"$@"
else
return 127
fi
else
# Indicate than there was an error so ZSH falls back to its default handler