aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'