Skip to content

Commit 6626aa6

Browse files
author
root
committed
sudo corrected
1 parent 4929cb8 commit 6626aa6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

prepare_system.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,11 @@ fi
6262

6363
# root or not
6464
if [[ $EUID -ne 0 ]]; then
65-
$SUDO=sudo
65+
SUDO='sudo -H'
66+
else
67+
SUDO=''
6668
fi
6769

68-
6970
case $ID in
7071
'ubuntu')
7172
prepare_ubuntu

0 commit comments

Comments
 (0)