fix(command-not-found): remove invalid argument for PackageKit (#9876)
`pk-command-not-found` doesn't accept `--` as an argument. This is what happens when `--` is the first argument: ``` $ gem zsh: --: command not found... ```
This commit is contained in:
parent
70ab2928a5
commit
f4de8c5b3a
|
@ -38,7 +38,7 @@ fi
|
||||||
if [[ -x /usr/libexec/pk-command-not-found ]]; then
|
if [[ -x /usr/libexec/pk-command-not-found ]]; then
|
||||||
command_not_found_handler() {
|
command_not_found_handler() {
|
||||||
if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then
|
if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then
|
||||||
/usr/libexec/pk-command-not-found -- "$@"
|
/usr/libexec/pk-command-not-found "$@"
|
||||||
return $?
|
return $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue