From c7ee202c89b51103dee323c19e61fe149d60560b Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Wed, 3 May 2023 15:23:35 +0200 Subject: [PATCH] Update --- bash-folders-battery-hook.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bash-folders-battery-hook.sh b/bash-folders-battery-hook.sh index bf2773f..f2c0bcc 100755 --- a/bash-folders-battery-hook.sh +++ b/bash-folders-battery-hook.sh @@ -152,10 +152,14 @@ while [ $# -gt 0 ] ; do fi ;; --low) - LOW_BATTERY=$2 + if [ $# -eq 2 ]; then + LOW_BATTERY=$2 + fi ;; --high) - HIGH_BATTERY=$2 + if [ $# -eq 2 ]; then + HIGH_BATTERY=$2 + fi ;; *) esac