summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2006-03-06 18:16:28 +0000
committererdgeist <erdgeist@erdgeist.org>2006-03-06 18:16:28 +0000
commite4ef7d9051d403417b2ca56f38d00347b08223e6 (patch)
treef291cf7c4b21f684ebcd23f6378debbc64efa546
parent5dd4285fb8cbd0bd6fd76e0b6ac532f46b79615d (diff)
Some more sanity checks
-rwxr-xr-xezjail-release.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ezjail-release.sh b/ezjail-release.sh
index 5befff6..1be5849 100755
--- a/ezjail-release.sh
+++ b/ezjail-release.sh
@@ -79,7 +79,7 @@ release)
79 for pkg in base ${basejail_manpages} ${basejail_ports} ${basejail_sources}; do 79 for pkg in base ${basejail_manpages} ${basejail_ports} ${basejail_sources}; do
80 if [ "${basejail_dir}" = "${basejail_host}" ]; then 80 if [ "${basejail_dir}" = "${basejail_host}" ]; then
81 mkdir -p ${basejail_tmp} || exerr "Could not create temporary base jail directory ${basejail_tmp}." 81 mkdir -p ${basejail_tmp} || exerr "Could not create temporary base jail directory ${basejail_tmp}."
82 cd ${basejail_tmp} 82 cd ${basejail_tmp} || exerr "Could not cd to ${basejail_tmp}."
83 for basejail_path in pub/FreeBSD/releases pub/FreeBSD/snapshot pub/FreeBSD releases snapshots NO; do 83 for basejail_path in pub/FreeBSD/releases pub/FreeBSD/snapshot pub/FreeBSD releases snapshots NO; do
84 [ "${basejail_path}" = "NO" ] && exerr "Could not fetch ${pkg} from ${basejail_host}." 84 [ "${basejail_path}" = "NO" ] && exerr "Could not fetch ${pkg} from ${basejail_host}."
85 ftp "${basejail_host}:${basejail_path}/${basejail_arch}/${basejail_release}/${pkg}/*" && break 85 ftp "${basejail_host}:${basejail_path}/${basejail_arch}/${basejail_release}/${pkg}/*" && break
@@ -88,7 +88,7 @@ release)
88 [ -f install.sh ] && yes | . install.sh 88 [ -f install.sh ] && yes | . install.sh
89 rm -rf ${basejail_tmp} 89 rm -rf ${basejail_tmp}
90 else 90 else
91 cd ${basejail_reldir}/${basejail_dir}/${pkg} || exerr "Could not change to ${basejail_dir}." 91 cd ${basejail_reldir}/${basejail_dir}/${pkg} || exerr "Could not cd to ${basejail_dir}."
92 set -- all 92 set -- all
93 [ -f install.sh ] && yes | . install.sh 93 [ -f install.sh ] && yes | . install.sh
94 fi 94 fi