comply with shellcheck

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

View File

@ -31,8 +31,7 @@ check_if_running_as_root() {
if [[ "$UID" -ne '0' ]]; then
echo "Warning: You are not root, and you may reach insufficient permission errors."
read -r -p "Are you sure you want to continue? [y/N] " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]
then
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
echo "Continuing the installation with current user..."
else
echo "Not running with root, exiting..."