From e9bef4a557d1f86b5ee82001fa314472dad51735 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@freedombone.net>
Date: Mon, 8 May 2017 11:41:33 +0100
Subject: [PATCH] Different dialog if installing a single app

---
 src/freedombone-addremove | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/src/freedombone-addremove b/src/freedombone-addremove
index 4640f5528..053e37727 100755
--- a/src/freedombone-addremove
+++ b/src/freedombone-addremove
@@ -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;;
-- 
GitLab