summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <curtis.mcenroe@adgear.com>2017-03-15 11:10:48 -0400
committerJune McEnroe <curtis.mcenroe@adgear.com>2017-03-15 11:10:48 -0400
commitcc617a823c8af037a64331cde490d990b9b234c1 (patch)
tree034e1bc4bd2d99f25968e30904234d3987aca42c
parentUse psvar for title setting (diff)
downloadsrc-cc617a823c8af037a64331cde490d990b9b234c1.tar.gz
src-cc617a823c8af037a64331cde490d990b9b234c1.zip
Fix bri compilation
cc will remove the file itself just fine. Always exit in case any of the
shell commands fail.
-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.
it/Linux.mk?h=1.2p1&id=5e5df95e0119621a6b06230e44882db18b927aff&follow=1'>Use -l:filename in Linux.mkJune McEnroe 2019-11-06Fix compat.h for #defined strlcpyJune McEnroe 2019-11-06Allow unsetting LIBRESSL_PREFIXJune McEnroe 2019-11-06Document calico service configurationJune McEnroe 2019-11-06Document SASL EXTERNAL configuration in more detailJune McEnroe 2019-11-06Document pounce service configurationJune McEnroe 2019-11-06Mention Darwin and GNU/Linux in READMEJune McEnroe 2019-11-06Assume LibreSSL from brew on DarwinJune McEnroe 2019-11-06Remove -DNO_EXPLICIT_BZERO from Darwin.mkJune McEnroe 2019-11-06Don't install rc scripts or dirs on LinuxJune McEnroe