From 54240bf8a16600148fab6e9d341c82e78abcbf4a Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Mon, 12 Jun 2000 12:43:43 +0000 Subject: Handle comments in all places. --- java/javavmwrapper/src/javavmwrapper.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'java') diff --git a/java/javavmwrapper/src/javavmwrapper.sh b/java/javavmwrapper/src/javavmwrapper.sh index 5507efe3cbc1..d7a20baabe20 100644 --- a/java/javavmwrapper/src/javavmwrapper.sh +++ b/java/javavmwrapper/src/javavmwrapper.sh @@ -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 <&2 -exit 1 \ No newline at end of file +exit 1 -- cgit v1.2.3