summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/slight7
1 files 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)