summaryrefslogtreecommitdiff
path: root/scripts/slight
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/slight')
-rwxr-xr-xscripts/slight2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/slight b/scripts/slight
index c4d70c8..703a1fd 100755
--- a/scripts/slight
+++ b/scripts/slight
@@ -54,6 +54,8 @@ while getopts "i:d:s:ph" option; do
p)
if ! brightnessctl 2>/dev/null; then
err "Failed to get current brightness"
+ else
+ exit 0
fi
;;
h) help; exit 0 ;;