---
 pm/sleep.d/99video |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pm/sleep.d/99video b/pm/sleep.d/99video
index 4bfdf83..82f0469 100755
--- a/pm/sleep.d/99video
+++ b/pm/sleep.d/99video
@@ -11,10 +11,10 @@
 
 reset_brightness() {
        for bl in /sys/class/backlight/* ; do
-               [ -f $bl/brightness ] || continue
-               BR=$(cat $bl/brightness)
-               echo 0 > $bl/brightness
-               echo $BR > $bl/brightness
+               [ -f "$bl/brightness" ] || continue
+               BR="$(cat $bl/brightness)"
+               echo 0 > "$bl/brightness"
+               echo "$BR" > "$bl/brightness"
        done
 }
 
@@ -45,7 +45,7 @@ resume_video()
                vbe vbestate restore < /var/run/vbestate
        fi
        if [ "${DISPLAY_QUIRK_VBEMODE_RESTORE}" = "true" ]; then
-               vbe vbemode set $(cat /var/run/vbemode)
+               vbe vbemode set "$(cat /var/run/vbemode)"
        fi
        if [ "${DISPLAY_QUIRK_DPMS_ON}" = "true" ]; then
                vbe dpms on
-- 
1.5.3.8

_______________________________________________
Pm-utils mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pm-utils

Reply via email to