summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2019-11-25 11:49:06 +0000
committerRichard Hughes <richard@hughsie.com>2020-01-08 14:23:05 +0000
commit17dac9c8ae7afc9dfb95b5ebd2fe183d0c3f32af (patch)
tree24758d2ab0a9b1d7761e6a07e9bdbdac73e332b3
parent1c522d0705074e5fc2a73160627bb0d8fa72f0f9 (diff)
command-not-found: Don't use a bash regex to fix other shells
-rw-r--r--contrib/command-not-found/PackageKit.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/command-not-found/PackageKit.sh.in b/contrib/command-not-found/PackageKit.sh.in
index ea90981f7..1e1fcdffd 100644
--- a/contrib/command-not-found/PackageKit.sh.in
+++ b/contrib/command-not-found/PackageKit.sh.in
@@ -11,7 +11,7 @@ command_not_found_handle () {
local retval=127
# only search for the command if we're interactive
- [[ $- =~ i ]] || runcnf=0
+ [[ $- == *"i"* ]] || runcnf=0
# don't run if DBus isn't running
[[ ! -S /run/dbus/system_bus_socket ]] && runcnf=0