Pārlūkot izejas kodu

Different dialog if installing a single app

Bob Mottram 8 gadus atpakaļ
vecāks
revīzija
e9bef4a557
1 mainītis faili ar 11 papildinājumiem un 4 dzēšanām
  1. 11
    4
      src/freedombone-addremove

+ 11
- 4
src/freedombone-addremove Parādīt failu

@@ -204,10 +204,17 @@ function install_apps_selected {
204 204
 
205 205
     if [[ "$select_all_apps" != "add-all" ]]; then
206 206
         # ask for confirmation
207
-        dialog --title $"Add applications" \
208
-               --backtitle $"Freedombone" \
209
-               --defaultno \
210
-               --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
207
+        if [ $n -eq 1 ]; then
208
+            dialog --title $"$installs" \
209
+                   --backtitle $"Freedombone" \
210
+                   --defaultno \
211
+                   --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
212
+        else
213
+            dialog --title $"Add applications" \
214
+                   --backtitle $"Freedombone" \
215
+                   --defaultno \
216
+                   --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
217
+        fi
211 218
         sel=$?
212 219
         case $sel in
213 220
             1) return;;