We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12ccc74 commit d807016Copy full SHA for d807016
makefile
@@ -23,8 +23,9 @@ mrpropest: mrproper
23
24
install: todo
25
@if [ `id -u` == "0" ] ; then cp -f todo /usr/bin/todo ; else \
26
- if which sudo > /dev/null ; then sudo cp -f todo /usr/bin/todo ; else \
27
- @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 ;\
28
+ false ;\
29
fi \
30
fi
31
@echo 'Installation success'
0 commit comments