Different dialog if installing a single app

This commit is contained in:
Bob Mottram 2017-05-08 11:41:33 +01:00
parent 8aae0dfd84
commit e9bef4a557
1 changed files with 11 additions and 4 deletions

View File

@ -204,10 +204,17 @@ function install_apps_selected {
if [[ "$select_all_apps" != "add-all" ]]; then
# ask for confirmation
dialog --title $"Add 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
if [ $n -eq 1 ]; then
dialog --title $"$installs" \
--backtitle $"Freedombone" \
--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=$?
case $sel in
1) return;;