mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 05:05:29 +03:00
fix 'command-not-found: is a directory' error
This commit is contained in:
parent
7f3b857d0d
commit
48a3e1a88d
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ in
|
||||||
''
|
''
|
||||||
# This function is called whenever a command is not found.
|
# This function is called whenever a command is not found.
|
||||||
command_not_found_handle() {
|
command_not_found_handle() {
|
||||||
local p=${commandNotFound}
|
local p=${commandNotFound}/bin/command-not-found
|
||||||
if [ -x $p -a -f ${cfg.dbPath} ]; then
|
if [ -x $p -a -f ${cfg.dbPath} ]; then
|
||||||
# Run the helper program.
|
# Run the helper program.
|
||||||
$p "$@"
|
$p "$@"
|
||||||
|
@ -65,7 +65,7 @@ in
|
||||||
''
|
''
|
||||||
# This function is called whenever a command is not found.
|
# This function is called whenever a command is not found.
|
||||||
command_not_found_handler() {
|
command_not_found_handler() {
|
||||||
local p=${commandNotFound}
|
local p=${commandNotFound}/bin/command-not-found
|
||||||
if [ -x $p -a -f ${cfg.dbPath} ]; then
|
if [ -x $p -a -f ${cfg.dbPath} ]; then
|
||||||
# Run the helper program.
|
# Run the helper program.
|
||||||
$p "$@"
|
$p "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue