From a32a79562c12d1048042850be1973d125a2c1d28 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Mon, 20 Feb 2006 12:59:53 +0000 Subject: refining search strategies --- ezjail-release.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ezjail-release.sh b/ezjail-release.sh index 7db3f1c..66c2a5b 100755 --- a/ezjail-release.sh +++ b/ezjail-release.sh @@ -49,7 +49,7 @@ release) done basejail_arch=`uname -p` - basejail_server=${basejail_server:-"ftp.freebsd.org:"} + basejail_server=${basejail_server:-"ftp.freebsd.org"} basejail_server=${basejail_server#ftp://} basejail_dir=${basejail_server#file://} [ "${basejail_dir%%[!/]*}" ] || basejail_reldir=${PWD} @@ -79,9 +79,10 @@ release) if [ "${basejail_dir}" = "${basejail_server}" ]; then mkdir -p ${basejail_tmp} || exerr "Could not create temporary base jail directory ${basejail_tmp}." cd ${basejail_tmp} - for basejail_path in /pub/FreeBSD/releases /pub/FreeBSD/snapshot /FreeBSD NO; do + for basejail_path in pub/FreeBSD/releases pub/FreeBSD/snapshot pub/FreeBSD releases snapshots NO; do [ "${basejail_path}" = "NO" ] && exerr "Could not fetch ${pkg} from ${basejail_server}." - ftp "${basejail_server}${basejail_path}/${basejail_arch}/${basejail_release}/${pkg}/*" > /dev/null && break +echo "${basejail_server}:${basejail_path}/${basejail_arch}/${basejail_release}/${pkg}/*" + ftp "${basejail_server}:${basejail_path}/${basejail_arch}/${basejail_release}/${pkg}/*" && break done [ -f install.sh ] && yes | . install.sh rm -rf ${basejail_tmp} -- cgit v1.2.3