From d807016f8bf2eff4bd2dd88831d50da72dd80e6e Mon Sep 17 00:00:00 2001 From: ache Date: Sun, 27 Aug 2017 01:48:55 +0000 Subject: [QuickFix] Makefile install --- makefile | 5 +++-- 1 file 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' -- cgit v1.2.3