summaryrefslogtreecommitdiff
path: root/scripts/slight
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2024-07-26 21:58:20 +0400
committerSuleyman Farajli <suleyman@farajli.net>2024-07-26 21:58:20 +0400
commit539b64cc93190ad0d687f1282465c0004a0f50b6 (patch)
tree2d8f8afefa70665eb2940d8a63802e236013c6f6 /scripts/slight
parent84579b7e6ae2728a9934633eb59c899b16bb8401 (diff)
slight: run function update
Diffstat (limited to 'scripts/slight')
-rwxr-xr-xscripts/slight8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/slight b/scripts/slight
index 4c45b80..ee01e54 100755
--- a/scripts/slight
+++ b/scripts/slight
@@ -26,6 +26,8 @@ run() {
if ! ${1} > /dev/null 2>&1; then
err "${2}"
fi
+
+ [ -n "${3}" ] && echo "${3}"
exit 0
}
@@ -34,8 +36,7 @@ if ! command -v brightnessctl > /dev/null 2>&1; then
fi
if [ ${#} != 1 ] && [ ${#} != 2 ]; then
- err "${0}: Invalid usage" \
- "Try '${0} -h' for help."
+ err "${0}: Invalid usage" "Try '${0} -h' for help."
fi
while getopts "i:d:s:ph" option; do
@@ -65,5 +66,4 @@ while getopts "i:d:s:ph" option; do
esac
done
-err "${0}: Invalid usage" \
- "Try '${0} -h' for help."
+err "${0}: Invalid usage" "Try '${0} -h' for help."