aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2005-05-05 09:21:25 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2005-05-05 09:21:25 +0000
commitec1f88a3fc3682a1f95968f0e7e4e64f17249e80 (patch)
treed4ca351cac0aa0f29836a303632834e56363d87b /www
parent6ab82556ad29cd91f4c539f35712d2c78ce6250f (diff)
Notes
Diffstat (limited to 'www')
-rw-r--r--www/bricolage/files/bric_upgrade.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/www/bricolage/files/bric_upgrade.sh b/www/bricolage/files/bric_upgrade.sh
index eb2e943ae30f..fb5380cb355e 100644
--- a/www/bricolage/files/bric_upgrade.sh
+++ b/www/bricolage/files/bric_upgrade.sh
@@ -12,7 +12,7 @@ fi
# Ensure the old version exists at the end of the argument list
OLDVERSION=`echo "$*" | sed -e "s/^.* \([^ ]*\)/\1/"`
-VTEST=`echo "$OLDVERSION" | sed -e "s/^1\.8\.[012]$/OKAY/"`
+VTEST=`echo "$OLDVERSION" | sed -e "s/^1\.8\.[01234]$/OKAY/"`
if [ "${VTEST}" != "OKAY" ]
then
echo "The final argument should be the old version of the port, in the format."
@@ -31,10 +31,13 @@ fi
# Now try to upgrade it
for ver in `grep -A 1000 ${OLDVERSION} ${BRICUPGRADE}/versions.txt | tail -n +2`
do
- for file in `ls ${BRICUPGRADE}/${ver}`
- do
- ${BRICUPGRADE}/${ver}/${file} $@ # Run with our args
- done
+ if [ -d ${BRICUPGRADE}/${ver} ]
+ then
+ for file in `ls ${BRICUPGRADE}/${ver}`
+ do
+ ${BRICUPGRADE}/${ver}/${file} $@ # Run with our args
+ done
+ fi
done
echo "Upgrade complete"