diff options
Diffstat (limited to 'nixpkgs/nixos/modules/programs/command-not-found/command-not-found.nix')
-rw-r--r-- | nixpkgs/nixos/modules/programs/command-not-found/command-not-found.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixpkgs/nixos/modules/programs/command-not-found/command-not-found.nix b/nixpkgs/nixos/modules/programs/command-not-found/command-not-found.nix index 656c255fcb18..d8394bf73a2e 100644 --- a/nixpkgs/nixos/modules/programs/command-not-found/command-not-found.nix +++ b/nixpkgs/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 |