summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatt McHenry <github@matt.mchenryfamily.org>2017-04-28 23:10:44 -0400
committerMatt McHenry <github@matt.mchenryfamily.org>2017-04-28 23:11:21 -0400
commit48a3e1a88d0ab4e154a7b0a649136605eaefd32c (patch)
tree418226e78753a5e65ada5d9b4dd9fab7661d426c
parent7f3b857d0d08c5e7d8d0ecdb2a53f06cc48a9cdf (diff)
downloadnixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.tar
nixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.tar.gz
nixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.tar.bz2
nixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.tar.lz
nixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.tar.xz
nixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.tar.zst
nixpkgs-48a3e1a88d0ab4e154a7b0a649136605eaefd32c.zip
fix 'command-not-found: is a directory' error
-rw-r--r--nixos/modules/programs/command-not-found/command-not-found.nix4
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 6fb926fe1d5..55529d73cb6 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 "$@"