From e0d7e2275b38808d822fe7c259b5812ad74a6757 Mon Sep 17 00:00:00 2001 From: Alec Moskvin Date: Sun, 6 Apr 2014 14:59:01 -0400 Subject: [PATCH] Fix error when calling op_bright_down.sh with brightness 0 Also change to /bin/sh --- recipes/pandora-system/pandora-scripts/op_bright_down.sh | 4 ++-- recipes/pandora-system/pandora-scripts/op_bright_up.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/recipes/pandora-system/pandora-scripts/op_bright_down.sh b/recipes/pandora-system/pandora-scripts/op_bright_down.sh index ca66d64..964240f 100644 --- a/recipes/pandora-system/pandora-scripts/op_bright_down.sh +++ b/recipes/pandora-system/pandora-scripts/op_bright_down.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh . /usr/pandora/scripts/op_paths.sh @@ -11,7 +11,7 @@ elif [ "$cur" -gt "20" ]; then new=$(($cur-5)) elif [ "$cur" -gt "5" ]; then new=$(($cur-3)) -elif [ "$cur" -gt "0" ]; then +elif [ "$cur" -ge "0" ]; then new=$(($cur-1)) fi diff --git a/recipes/pandora-system/pandora-scripts/op_bright_up.sh b/recipes/pandora-system/pandora-scripts/op_bright_up.sh index 15a556e..b6deab7 100644 --- a/recipes/pandora-system/pandora-scripts/op_bright_up.sh +++ b/recipes/pandora-system/pandora-scripts/op_bright_up.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh . /usr/pandora/scripts/op_paths.sh -- 2.39.5