aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2017-08-27 01:48:55 +0000
committerache <ache@ache.one>2017-08-27 01:48:55 +0000
commitd807016f8bf2eff4bd2dd88831d50da72dd80e6e (patch)
tree765ae401ac0c8c3d6cd0bca19b039be05375fd4b
parentFix todo (diff)
[QuickFix] Makefile install
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index e2898cb..4cb9ec9 100644
--- a/makefile
+++ b/makefile
@@ -23,8 +23,9 @@ mrpropest: mrproper
install: todo
@if [ `id -u` == "0" ] ; then cp -f todo /usr/bin/todo ; else \
- if which sudo > /dev/null ; then sudo cp -f todo /usr/bin/todo ; else \
- @echo must be run by superuser ;\
+ if which sudo 1> /dev/null 2> /dev/null ; then sudo cp -f todo /usr/bin/todo ; else \
+ echo must be run by superuser ;\
+ false ;\
fi \
fi
@echo 'Installation success'