Unverified Commit f4de8c5b authored by sevendials's avatar sevendials Committed by GitHub
Browse files

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...
```
parent 70ab2928
...@@ -38,7 +38,7 @@ fi ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment