install.sh: remove ponctual user definition

This commit is contained in:
Alexandre CATTEAU 2022-03-12 19:49:47 +01:00
parent 7058a00720
commit c72ca97937

View File

@ -1,12 +1,7 @@
#!/bin/bash #!/bin/bash
run_directory=$(dirname "$0") run_directory=$(dirname "$0")
if [ -z "$1" ]; then
user=$(whoami) user=$(whoami)
else
user=$1
fi
if [[ $user != 'root' ]]; then if [[ $user != 'root' ]]; then
echo "Copying rcs to home directory..." echo "Copying rcs to home directory..."