summary refs log tree commit diff
path: root/.bin/bri.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2017-03-15 11:10:48 -0400
committerJune McEnroe <june@causal.agency>2017-03-15 11:10:48 -0400
commitb9638bf645196b4a896b7dc3fc4273bc0908275d (patch)
tree17c36acf88dfd263832d478e7549e5b5e8e479f0 /.bin/bri.c
parentUse psvar for title setting (diff)
downloadsrc-b9638bf645196b4a896b7dc3fc4273bc0908275d.tar.gz
src-b9638bf645196b4a896b7dc3fc4273bc0908275d.zip
Fix bri compilation
cc will remove the file itself just fine. Always exit in case any of the
shell commands fail.
Diffstat (limited to '')
-rwxr-xr-x.bin/bri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/.bin/bri.c b/.bin/bri.c
index 88a11994..25c18aba 100755
--- a/.bin/bri.c
+++ b/.bin/bri.c
@@ -1,8 +1,8 @@
 #if 0
-sudo rm $(dirname $0)/bri && \
 cc -Wall -Wextra -pedantic $@ -o $(dirname $0)/bri $0 && \
 sudo chown root:root $(dirname $0)/bri && \
-exec sudo chmod u+s $(dirname $0)/bri
+sudo chmod u+s $(dirname $0)/bri
+exit
 #endif
 
 // Backlight brightness control.