One more sanity check, else /+CONTENS will be searched.

This commit is contained in:
Alexander Leidinger 2007-08-30 16:48:33 +00:00
parent 142947601f
commit 5c2c9f05ad
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=198542

View file

@ -92,6 +92,11 @@ for i in $@; do
fi
fi
if [ ! -f ${current_port}/+CONTENTS ]; then
echo $i is not a valid port
continue
fi
myorigin=$(awk -F : '/@comment ORIGIN:/ {print $2}' \
${current_port}/+CONTENTS)