diff options
author | Richard Hughes <richard@hughsie.com> | 2007-12-29 11:56:31 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2007-12-29 11:56:31 +0000 |
commit | d2d72cb5c174e0873530773a1e371c2310809c6b (patch) | |
tree | 85354fe11c7792a241f2debdc42c9e56fd724cf2 /pm | |
parent | 003f29807f418cd4bd14fb51569b5b95a2d9dfa5 (diff) |
2007-12-29 Richard Hughes <richard@hughsie.com>
* pm/functions:
* src/pm-powersave:
Red Hat Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=302401
(Issue 1 in the bug report)
This patch makes sure that the nullglob option is set. This makes
sure that the result of a filename expansion is empty, when the
pattern does not match.
From Till Maas <opensource@till.name>, many thanks.
Diffstat (limited to 'pm')
-rwxr-xr-x | pm/functions | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pm/functions b/pm/functions index b370137..b40dd55 100755 --- a/pm/functions +++ b/pm/functions @@ -18,6 +18,10 @@ TEMPORARY_CPUFREQ_GOVERNOR="userspace" [ -f /usr/lib/pm-utils/defaults ] && . /usr/lib/pm-utils/defaults set +a +# set nullglob to make glob results empty in case the pattern does not +# match any files +shopt -s nullglob + source_configs() { cfgs="/etc/pm/config.d/*[^~]" |