summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Lowther <victor.lowther@gmail.com>2008-01-28 19:56:36 +0000
committerRichard Hughes <richard@hughsie.com>2008-01-28 19:56:36 +0000
commit96560c7ef164c756669f22df2b9d198bf3731100 (patch)
treeb361ba26095e1b85cbe5a96afe605460866f8eca
parentb8b5c82c09a9b48cbadaa8c2cdb993f79bfee09d (diff)
Made config file loading POSIX-compliant and got rid of a redundant
local variable in the config file loading function.
-rwxr-xr-xpm/functions7
1 files changed, 3 insertions, 4 deletions
diff --git a/pm/functions b/pm/functions
index 9a82f45..e492545 100755
--- a/pm/functions
+++ b/pm/functions
@@ -29,11 +29,10 @@ shopt -s nullglob
source_configs()
{
- cfgs="/etc/pm/config.d/*[^~]"
- for cfg in $cfgs ; do
- [ -f $cfg ] || continue
+ for cfg in /etc/pm/config.d/*[!~] ; do
+ [ -f "$cfg" ] || continue
set -a
- . $cfg
+ . "${cfg}"
set +a
done
}