about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xpkgs/by-name/br/brightness/brightness.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/by-name/br/brightness/brightness.sh b/pkgs/by-name/br/brightness/brightness.sh
index d763b3ca..d0cccfee 100755
--- a/pkgs/by-name/br/brightness/brightness.sh
+++ b/pkgs/by-name/br/brightness/brightness.sh
@@ -43,7 +43,7 @@ brightness() {
 
     output="$(echo | awk --assign=new="$new" --assign=max="$max" '{printf max * new}')"
 
-    msg "echo \"$output\" > $BACKLIGHT/brightness"
+    echo "$output" | sudo tee "$BACKLIGHT/brightness" >/dev/null
 }
 
 for arg in "$@"; do