[Lunar-commits] <moonbase> firefox: fixing an exceedingly unusual bug
Dave Brown
dagbrown at lunar-linux.org
Mon Aug 18 07:26:58 CEST 2008
commit dc3556fbad91b7d5251b58d2351a98b8dc0e3752
Author: Dave Brown <dagbrown at lunar-linux.org>
Date: Mon Aug 18 14:26:58 2008 +0900
firefox: fixing an exceedingly unusual bug
But it just happened to catch me today. Somehow I had more than one old
version of Firefox installed, and this caused the error message:
/var/lib/lunar/moonbase/firefox/POST_INSTALL: line 5: [: too many arguments
when I went to lin the latest version of Firefox.
This is an easy enough problem to solve, so I fixed it so if there are
multiple old versions, it'll clean up all of their /usr/lib/firefox-$ver
directories.
---
web/firefox/POST_INSTALL | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/web/firefox/POST_INSTALL b/web/firefox/POST_INSTALL
index c13163b..4ae7a22 100644
--- a/web/firefox/POST_INSTALL
+++ b/web/firefox/POST_INSTALL
@@ -2,8 +2,11 @@ OLD_VER="`get_module_config OLD_VER`"
FIREFOX_HOME=/usr
FFOX_LIBDIR=firefox-$VERSION
-if [ ! -z $OLD_VER ]; then
- rm -rf /usr/lib/firefox-$OLD_VER
+if [ ! -z "$OLD_VER" ]; then
+ for old_version in $OLD_VER
+ do
+ rm -rf /usr/lib/firefox-$old_version
+ done
fi
unset_module_config OLD_VER
More information about the Lunar-commits
mailing list