diff options
author | Sheena Artrip <sheena.artrip@gmail.com> | 2021-01-24 03:23:59 -0800 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2021-01-24 20:14:16 +0100 |
commit | 52fc21b10f7c0a26c71734c41d7c1103fbdf8c40 (patch) | |
tree | f9b7160fc6a644ce7f92b5783d95f8f2ef8338c5 /nixos | |
parent | fd3d62bcdfa66e505f805ed2757f21020dee7148 (diff) |
command-not-found: fix zsh exit code
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/programs/command-not-found/command-not-found.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/programs/command-not-found/command-not-found.nix b/nixos/modules/programs/command-not-found/command-not-found.nix index 656c255fcb18..d8394bf73a2e 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.nix +++ b/nixos/modules/programs/command-not-found/command-not-found.nix @@ -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 |