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:
sevendials 2021-05-03 07:49:41 -07:00 committed by GitHub
parent 70ab2928a5
commit f4de8c5b3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ fi
if [[ -x /usr/libexec/pk-command-not-found ]]; then
command_not_found_handler() {
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 $?
fi