From e79059880a21cf14e8ff35e9b875d2c2bc8813e1 Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Fri, 26 Jul 2024 10:39:34 +0400 Subject: slight: Small change --- scripts/slight | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/slight b/scripts/slight index c690e69..c4d70c8 100755 --- a/scripts/slight +++ b/scripts/slight @@ -26,15 +26,14 @@ run() { fi } +if ! command -v brightnessctl > /dev/null 2>&1; then + err "brightnessctl must be installed" +fi if [ $# != 1 ] && [ $# != 2 ]; then err "${0}: Invalid usage\nTry '$0 -h' for help." fi -if ! command -v brightnessctl > /dev/null 2>&1; then - err "brightnessctl must be installed" -fi - while getopts "i:d:s:ph" option; do case "${option}" in i) -- cgit v1.2.3