aboutsummaryrefslogtreecommitdiffstats
path: root/Tools/portbuild
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-06-11 21:25:49 +0800
committerkris <kris@FreeBSD.org>2008-06-11 21:25:49 +0800
commit56d846dd746f6139a6dd54e19dcde4eb3e4e5d0d (patch)
tree10e9d2d74ffc5e96bda0cfc967c394cc2171cde0 /Tools/portbuild
parent92953a536c7bc21f5e4c2bfffa52ceb0da861b65 (diff)
downloadfreebsd-ports-gnome-56d846dd746f6139a6dd54e19dcde4eb3e4e5d0d.tar.gz
freebsd-ports-gnome-56d846dd746f6139a6dd54e19dcde4eb3e4e5d0d.tar.zst
freebsd-ports-gnome-56d846dd746f6139a6dd54e19dcde4eb3e4e5d0d.zip
Add some test -d's to avoid cd'ing into directories that do not exist
Diffstat (limited to 'Tools/portbuild')
-rwxr-xr-xTools/portbuild/scripts/dologs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Tools/portbuild/scripts/dologs b/Tools/portbuild/scripts/dologs
index 95ad41e2f96a..eb1182ebc66a 100755
--- a/Tools/portbuild/scripts/dologs
+++ b/Tools/portbuild/scripts/dologs
@@ -10,11 +10,14 @@ scripts=${pb}/scripts
for ver in latest full; do
for num in 5 6 6-exp 6-exp2 7 7-exp 8 8-exp; do
- cd $home/$arch-$num-$ver && ${scripts}/processlogs ${arch}
- cd ${pb}/${arch}/${num} && ${scripts}/processfail ${arch} ${num}
+ dir=$home/$arch-$num-$ver
+ test -d $dir && cd $dir && ${scripts}/processlogs ${arch}
+ dir=${pb}/${arch}/${num}
+ test -d $dir && cd $dir && ${scripts}/processfail ${arch} ${num}
done
for num in 5 6 6-exp 6-exp2 7 7-exp 8 8-exp; do
- cd $home/$arch-$num-$ver-logs && ${scripts}/processlogs2
+ dir=$home/$arch-$num-$ver-logs
+ test -d $dir && cd $dir && ${scripts}/processlogs2
done
# for num in 5 6 6-exp 7; do
# cd $home && ${scripts}/comparelogs ${arch} $num-$ver 4-$ver