Different dialog if installing a single app
This commit is contained in:
parent
8aae0dfd84
commit
e9bef4a557
|
@ -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;;
|
||||
|
|
Loading…
Reference in New Issue