2.8 -> 2.10 upgrade script

Gavin Atkinson gavin.atkinson at ury.york.ac.uk
Wed Mar 23 15:24:29 PST 2005


On Wed, 23 Mar 2005, Gavin Atkinson wrote:
> I've just upgraded my laptop from Gnome 2.8 to 2.10 (relatively)
> painlessly.  Thanks to everyone for your work on this.
>
> - The attached patch makes it more clear in the log file as to whether the
> script actually succeeded or not.

Of course, actually attaching the diff would help.  Sorry!

Gavin
-------------- next part --------------
--- gnome_upgrade.sh.old	Wed Mar 23 21:15:08 2005
+++ gnome_upgrade.sh	Wed Mar 23 21:19:56 2005
@@ -92,7 +92,11 @@
     retval=$1
     logfile=$2
 
-    echo "INFO: GNOME upgrade finished at `date`" >> ${logfile}
+    if [ ${retval} = 0 ]; then
+	echo "INFO: GNOME upgrade finished successfully at `date`" >> ${logfile}
+    else
+	echo "INFO: GNOME upgrade FAILED at `date`" >> ${logfile}
+    fi
 
     exit ${retval}
 }


More information about the freebsd-gnome mailing list