Skip to content

Commit d807016

Browse files
committed
[QuickFix] Makefile install
1 parent 12ccc74 commit d807016

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ mrpropest: mrproper
2323

2424
install: todo
2525
@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 ;\
26+
if which sudo 1> /dev/null 2> /dev/null ; then sudo cp -f todo /usr/bin/todo ; else \
27+
echo must be run by superuser ;\
28+
false ;\
2829
fi \
2930
fi
3031
@echo 'Installation success'

0 commit comments

Comments
 (0)