diff options
author | ache <ache@ache.one> | 2017-08-27 01:48:55 +0000 |
---|---|---|
committer | ache <ache@ache.one> | 2017-08-27 01:48:55 +0000 |
commit | d807016f8bf2eff4bd2dd88831d50da72dd80e6e (patch) | |
tree | 765ae401ac0c8c3d6cd0bca19b039be05375fd4b | |
parent | Fix todo (diff) |
[QuickFix] Makefile install
-rw-r--r-- | makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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' |