[PATCH] (issue44) Do not ask the user to confirm start on update

Wald Commits scm-commit at wald.intevation.org
Mon Sep 29 13:34:23 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1411990459 -7200
# Node ID 34c92dbfee7e5c5121c609229787f71d2118fd00
# Parent  265583011f24d7970eaf0cc39f951bd22bab4b84
(issue44) Do not ask the user to confirm start on update

diff -r 265583011f24 -r 34c92dbfee7e packaging/linux-installer.inc
--- a/packaging/linux-installer.inc	Mon Sep 29 13:12:58 2014 +0200
+++ b/packaging/linux-installer.inc	Mon Sep 29 13:34:19 2014 +0200
@@ -135,13 +135,15 @@
   echo "  $UN_RUNCMD ${instcfg[PREFIX]}/bin/trustbridge-uninstall.sh"
 
   echo "################################################################################"
-  if ! [ $(id -u) -eq 0 ]; then
-    getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
-    getxt "or press Control-C to quit the installer.\n"
-    read
-    "${instcfg[PREFIX]}/bin/trustbridge" &
-  else
-    getxt "You can now launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
+  if [ $UPDATE -eq 0 ]; then
+    if ! [ $(id -u) -eq 0 ]; then
+      getxt "Press enter to launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
+      getxt "or press Control-C to quit the installer.\n"
+      read
+      "${instcfg[PREFIX]}/bin/trustbridge" &
+    else
+      getxt "You can now launch '%s'\n" "${instcfg[PREFIX]}/bin/trustbridge"
+    fi
   fi
 }
 


More information about the Trustbridge-commits mailing list