comply with shellcheck
parent
c839db72e8
commit
ef58feeb90
|
@ -48,7 +48,7 @@ check_if_running_as_root() {
|
||||||
# If you want to run as another user, please modify $UID to be owned by this user
|
# If you want to run as another user, please modify $UID to be owned by this user
|
||||||
if [[ "$UID" -ne '0' ]]; then
|
if [[ "$UID" -ne '0' ]]; then
|
||||||
echo "Warning: You are not root, and you may reach insufficient permission errors."
|
echo "Warning: You are not root, and you may reach insufficient permission errors."
|
||||||
read -p "Are you sure you want to continue? [y/N] " prompt
|
read -r -p "Are you sure you want to continue? [y/N] " prompt
|
||||||
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
|
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
|
||||||
then
|
then
|
||||||
echo "Continuing the installation with current user..."
|
echo "Continuing the installation with current user..."
|
||||||
|
|
Loading…
Reference in New Issue