Fix: Installer - invalid option check

This commit is contained in:
alstjr7375 2021-07-09 12:21:54 +09:00
parent 10f349b44b
commit 6dc4faf386

View file

@ -439,15 +439,17 @@ select_profile() {
#== Install Types ==============================================================
leptonBranch="master"
select_distribution() {
local selectedDistribution=""
select distribution in "Original(default)" "Photon-Style" "Proton Style"; do
selectedDistribution="${distribution}"
case "${distribution}" in
"Original") leptonBranch="master" ;;
"Photon-Style") leptonBranch="photon-style" ;;
"Proton-Style") leptonBranch="proton-style" ;;
"Original") leptonBranch="master"; break;;
"Photon-Style") leptonBranch="photon-style"; break;;
"Proton-Style") leptonBranch="proton-style"; break;;
*) echo "Invalid option, reselect please.";;
esac
lepton_ok_message "Selected ${distribution}"
break
done
lepton_ok_message "Selected ${selectedDistribution}"
}
leptonInstallType="Network" # Other types: Local, Release
@ -710,6 +712,7 @@ update_profile() {
local Ver=$(git --git-dir "${LEPTONINFOFILE}" describe --tags --abbrev=0)
git --git-dir "${LEPTONGITPATH}" checkout "tags/${Ver}"
fi
check_chrome_restore
else
lepton_error_message "Unable to find update type, ${Type}"
fi