From d0adeedbf8159d98869346e0bf8e42cf3b35bf8b Mon Sep 17 00:00:00 2001 From: Armand Bahi <armand.bahi@veremes.com> Date: Fri, 12 Oct 2018 13:23:59 +0000 Subject: [PATCH] =?UTF-8?q?V=C3=A9rification=20sudo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index f595e96f..0759c146 100755 --- a/install.sh +++ b/install.sh @@ -7,7 +7,11 @@ # # -cd utils/ -./pull_subtrees.sh -./init_symlinks.sh -./copy_hooks.sh +if [ `whoami` == "root" ]; then + echo "Please, do not run this script as sudo" +else + cd utils/ + ./pull_subtrees.sh + ./init_symlinks.sh + ./copy_hooks.sh +fi -- GitLab