Easy start script: refactor

This commit is contained in:
Dmitry Maksyoma 2021-07-21 19:10:49 +12:00
parent 24336b236a
commit 7c4896ac66

View File

@ -79,7 +79,7 @@ remember_de_choice() {
touch "$de_was_selected_file"
}
de_was_selected() {
de_was_selected_on_previous_run() {
[[ -f "$de_was_selected_file" ]]
}
@ -180,7 +180,7 @@ EOF
exit 1
fi
if user_asked_to_select_de || ! de_was_selected; then
if user_asked_to_select_de || ! de_was_selected_on_previous_run; then
detect_desktop_environments
ask_user_to_choose_de
debug "You selected $de_name desktop environment"