From 48a3e1a88d0ab4e154a7b0a649136605eaefd32c Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Fri, 28 Apr 2017 23:10:44 -0400 Subject: fix 'command-not-found: is a directory' error --- nixos/modules/programs/command-not-found/command-not-found.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nixos/modules/programs/command-not-found/command-not-found.nix') 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 6fb926fe1d5fc..55529d73cb60f 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 "$@" -- cgit 1.4.1