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

Different dialog if installing a single app

parent 8aae0dfd
No related branches found
No related tags found
No related merge requests found
...@@ -204,10 +204,17 @@ function install_apps_selected { ...@@ -204,10 +204,17 @@ function install_apps_selected {
if [[ "$select_all_apps" != "add-all" ]]; then if [[ "$select_all_apps" != "add-all" ]]; then
# ask for confirmation # ask for confirmation
dialog --title $"Add applications" \ if [ $n -eq 1 ]; then
--backtitle $"Freedombone" \ dialog --title $"$installs" \
--defaultno \ --backtitle $"Freedombone" \
--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 --defaultno \
--yesno $"\nYou have chosen to install the $installs app.\n\nIf you select 'yes' then the install will go ahead.\n\nAre you sure that you wish to continue?" 15 60
else
dialog --title $"Add applications" \
--backtitle $"Freedombone" \
--defaultno \
--yesno $"\nYou have chosen to install $n apps.\n\n $installs\n\nIf you select 'yes' then these will now be installed.\n\nAre you sure that you wish to continue?" 15 60
fi
sel=$? sel=$?
case $sel in case $sel in
1) return;; 1) return;;
......
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