comply with shellcheck

pull/184/head
Nicholas Wang 2020-11-25 11:34:33 -06:00 committed by GitHub
parent c839db72e8
commit ef58feeb90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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..."