Skip to content

Commit

Permalink
Update remoteWebsiteInstall.sh: replace spaces with tabs
Browse files Browse the repository at this point in the history
To be consistent with everything else.
  • Loading branch information
EricClaeys authored Dec 20, 2024
1 parent 3e54e5d commit 5f81648
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions remoteWebsiteInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,23 +89,23 @@ function enter_yes_no()
local RESULT=1
local ANSWER

if [[ ${AUTO_CONFIRM} == "false" ]]; then
while true; do
echo -e "${TEXT}"
read -r -p "Do you want to continue? (y/n): " ANSWER
ANSWER="${ANSWER,,}" # convert to lowercase

if [[ ${ANSWER} == "y" || ${ANSWER} == "yes" ]]; then
return 0
elif [[ ${ANSWER} == "n" || ${ANSWER} == "no" ]]; then
return 1
else
echo -e "\nInvalid response. Please enter y/yes or n/no."
fi
done
else
return 0
fi
if [[ ${AUTO_CONFIRM} == "false" ]]; then
while true; do
echo -e "${TEXT}"
read -r -p "Do you want to continue? (y/n): " ANSWER
ANSWER="${ANSWER,,}" # convert to lowercase

if [[ ${ANSWER} == "y" || ${ANSWER} == "yes" ]]; then
return 0
elif [[ ${ANSWER} == "n" || ${ANSWER} == "no" ]]; then
return 1
else
echo -e "\nInvalid response. Please enter y/yes or n/no."
fi
done
else
return 0
fi

return "${RESULT}"
}
Expand All @@ -114,10 +114,10 @@ function enter_yes_no()
# This function is only used when running in text (--text) mode.
function press_any_key()
{
if [[ ${AUTO_CONFIRM} == "false" ]]; then
echo -e "${1}\nPress any key to continue..."
read -r -n1 -s
fi
if [[ ${AUTO_CONFIRM} == "false" ]]; then
echo -e "${1}\nPress any key to continue..."
read -r -n1 -s
fi
}

# Add a common heading to the dialog text.
Expand Down Expand Up @@ -300,10 +300,10 @@ function pre_install_checks()
DIALOG_TEXT+="\n${INDENT}What is the configuration file for?"
DIALOG_TEXT+="${DIALOG_NORMAL}"
display_box "--infobox" "${DIALOG_PRE_CHECK}" "${DIALOG_TEXT}"
else
else
DIALOG_TEXT+="${DIALOG_RED}"
DIALOG_TEXT+="\n${INDENT}WARNING: No configuration file found a new one will be created."
DIALOG_TEXT+="${DIALOG_NORMAL}"
DIALOG_TEXT+="${DIALOG_NORMAL}"
fi

fi
Expand Down

0 comments on commit 5f81648

Please sign in to comment.