summaryrefslogtreecommitdiff
path: root/src/pm-powersave
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-09-28 21:25:36 +0000
committerPeter Jones <pjones@redhat.com>2006-09-28 21:25:36 +0000
commitb6f6896d86eb10935571bc65d398094f9590b33e (patch)
tree76568f6c21a1d3c483e9840cf14ad30a47748c7f /src/pm-powersave
parent48b9b9adcafbc071566cda9581b39c3c2b82b3b8 (diff)
- ignore emacs backup files in config dirs
Diffstat (limited to 'src/pm-powersave')
-rwxr-xr-xsrc/pm-powersave2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pm-powersave b/src/pm-powersave
index 5d3638d..8383776 100755
--- a/src/pm-powersave
+++ b/src/pm-powersave
@@ -28,7 +28,7 @@ runpowerhooks()
{
files="/etc/pm/power.d/*"
for file in $files ; do
- [ -x $file ] && $file $1
+ [[ "$file" =~ ".*~$" ]] || [ -x $file ] && $file $1
done
}