forked from Lainports/freebsd-ports
Handle comments in all places.
This commit is contained in:
parent
5a7231e73b
commit
54240bf8a1
1 changed files with 4 additions and 3 deletions
|
|
@ -42,8 +42,9 @@ registerVM () {
|
|||
/usr/bin/touch "${CONF}"
|
||||
fi
|
||||
|
||||
if [ ! -x "${1}" ]; then
|
||||
/bin/echo "${IAM}: warning: the specified JavaVM \"${1}\" either not exists of not executable" >&2
|
||||
VM=`/bin/echo "${1}" | sed 's|#.*||'`
|
||||
if [ ! -x ${VM} ]; then
|
||||
/bin/echo "${IAM}: warning: the specified JavaVM \"${VM}\" either not exists of not executable" >&2
|
||||
fi
|
||||
|
||||
/bin/ed "${CONF}" >/dev/null <<EOF
|
||||
|
|
@ -117,4 +118,4 @@ for JAVAVM in ${VMS}; do
|
|||
done
|
||||
|
||||
echo "${IAM}: error: no suitable JavaVMs found" >&2
|
||||
exit 1
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue