Skip to content
Snippets Groups Projects
Commit 0360845f authored by Bob Mottram's avatar Bob Mottram
Browse files

Only add confirmation if not installing for the first time

parent 1fc24f5e
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ function remove_apps_selected {
function install_apps_selected {
# which apps need to be installed?
select_all_apps=$1
installs=""
app_index=0
n=0
......@@ -155,16 +156,18 @@ function install_apps_selected {
return
fi
# ask for confirmation
dialog --title $"Remove applications" \
--backtitle $"Freedombone" \
--defaultno \
--yesno $"\nYou have chosen to install $n apps.\n\n $installs\n\nIf you choose 'yes' then these will now be installed.\n\nAre you sure that you wish to continue?" 15 60
sel=$?
case $sel in
1) return;;
255) return;;
esac
if [[ "$select_all_apps" != "add-all" ]]; then
# ask for confirmation
dialog --title $"Remove applications" \
--backtitle $"Freedombone" \
--defaultno \
--yesno $"\nYou have chosen to install $n apps.\n\n $installs\n\nIf you choose 'yes' then these will now be installed.\n\nAre you sure that you wish to continue?" 15 60
sel=$?
case $sel in
1) return;;
255) return;;
esac
fi
clear
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment