diff options
author | Victor Lowther <victor.lowther@gmail.com> | 2008-01-28 19:56:36 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2008-01-28 19:56:36 +0000 |
commit | 96560c7ef164c756669f22df2b9d198bf3731100 (patch) | |
tree | b361ba26095e1b85cbe5a96afe605460866f8eca | |
parent | b8b5c82c09a9b48cbadaa8c2cdb993f79bfee09d (diff) |
Made config file loading POSIX-compliant and got rid of a redundant
local variable in the config file loading function.
-rwxr-xr-x | pm/functions | 7 |
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 } |