aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2005-12-11 12:36:23 +0800
committerkris <kris@FreeBSD.org>2005-12-11 12:36:23 +0800
commite1b36b68d44648ec36d9c4e2a6634740239ef9d5 (patch)
treedfddadb79eb9ef93a6265c949c2224d56651a946 /Tools
parent0c384a5c8fd42813c8d87654148074d921e5253e (diff)
downloadfreebsd-ports-gnome-e1b36b68d44648ec36d9c4e2a6634740239ef9d5.tar.gz
freebsd-ports-gnome-e1b36b68d44648ec36d9c4e2a6634740239ef9d5.tar.zst
freebsd-ports-gnome-e1b36b68d44648ec36d9c4e2a6634740239ef9d5.zip
Remove 0-sized entries to avoid misbehaviour
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/getmachine4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/getmachine b/Tools/portbuild/scripts/getmachine
index 849d300e6270..2cc940408a81 100755
--- a/Tools/portbuild/scripts/getmachine
+++ b/Tools/portbuild/scripts/getmachine
@@ -37,6 +37,10 @@ fi
# Choose highest-priority machine that is free
mach=$(echo ${mach} | tr -s ' ' '\n' | grep -F -f - ${pb}/${arch}/mlist | head -1)
+if [ -z "${mach}" ]; then
+ rm -f "${mach}"
+ exit 1
+fi
. ${pb}/${arch}/portbuild.conf
test -f ${pb}/${arch}/portbuild.${mach} && . ${pb}/${arch}/portbuild.${mach}