From b54f050fdb7a9cb737d0c6dd76e7b629cc22c2cf Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Sat, 4 Feb 2012 09:12:14 -0800 Subject: [PATCH] cnf: Use local variables in the shell handler Since this is a bash specific feature, we can use local variables to not pollute the user's environment. --- contrib/command-not-found/PackageKit.sh.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/command-not-found/PackageKit.sh.in b/contrib/command-not-found/PackageKit.sh.in index 4c7e020..96cd816 100644 --- a/contrib/command-not-found/PackageKit.sh.in +++ b/contrib/command-not-found/PackageKit.sh.in @@ -7,8 +7,8 @@ # (at your option) any later version. command_not_found_handle () { - runcnf=1 - retval=127 + local runcnf=1 + local retval=127 # don't run if DBus isn't running [ ! -S /var/run/dbus/system_bus_socket ] && runcnf=0 -- 1.7.7.6