mirror of
https://github.com/black7375/Firefox-UI-Fix.git
synced 2026-01-30 04:10:32 -08:00
Fix: Installer - invalid option check
This commit is contained in:
parent
10f349b44b
commit
6dc4faf386
1 changed files with 8 additions and 5 deletions
13
install.sh
13
install.sh
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue