fix 'command-not-found: is a directory' error

Changed files
+2 -2
nixos
modules
programs
command-not-found
+2 -2
nixos/modules/programs/command-not-found/command-not-found.nix
···
''
# 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 "$@"
···
''
# 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 "$@"