diff options
author | Matt McHenry <github@matt.mchenryfamily.org> | 2017-04-28 23:10:44 -0400 |
---|---|---|
committer | Matt McHenry <github@matt.mchenryfamily.org> | 2017-04-28 23:11:21 -0400 |
commit | 48a3e1a88d0ab4e154a7b0a649136605eaefd32c (patch) | |
tree | 418226e78753a5e65ada5d9b4dd9fab7661d426c /nixos/modules/programs/command-not-found | |
parent | 7f3b857d0d08c5e7d8d0ecdb2a53f06cc48a9cdf (diff) |
fix 'command-not-found: is a directory' error
Diffstat (limited to 'nixos/modules/programs/command-not-found')
-rw-r--r-- | nixos/modules/programs/command-not-found/command-not-found.nix | 4 |
1 files changed, 2 insertions, 2 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 6fb926fe1d5f..55529d73cb60 100644 --- a/nixos/modules/programs/command-not-found/command-not-found.nix +++ b/nixos/modules/programs/command-not-found/command-not-found.nix @@ -44,7 +44,7 @@ in '' # This function is called whenever a command is not found. command_not_found_handle() { - local p=${commandNotFound} + local p=${commandNotFound}/bin/command-not-found if [ -x $p -a -f ${cfg.dbPath} ]; then # Run the helper program. $p "$@" @@ -65,7 +65,7 @@ in '' # This function is called whenever a command is not found. command_not_found_handler() { - local p=${commandNotFound} + local p=${commandNotFound}/bin/command-not-found if [ -x $p -a -f ${cfg.dbPath} ]; then # Run the helper program. $p "$@" |