From c72ca97937049b4bbc89d9a37722501e5aadd879 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Sat, 12 Mar 2022 19:49:47 +0100 Subject: [PATCH] install.sh: remove ponctual user definition --- install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 3de68bb..1386909 100644 --- a/install.sh +++ b/install.sh @@ -1,12 +1,7 @@ #!/bin/bash run_directory=$(dirname "$0") - -if [ -z "$1" ]; then - user=$(whoami) -else - user=$1 -fi +user=$(whoami) if [[ $user != 'root' ]]; then echo "Copying rcs to home directory..."