binAbsName JAVA_HOME CLASSPATH 应该是否定判断
function install() {
if [ -f "$serviceFile" ]; then
echo "service file already exists" 2>&2
exit 2
fi
if [ ! -f "$binAbsName" ]; then
echo "$binAbsName not found" 2>&2
exit 2
fi
if [ ! -z "$JAVA_HOME" ]; then
echo "JAVA_HOME variable not found" 2>&2
exit 2
fi
if [ ! -z "$CLASSPATH" ]; then
echo "CLASSPATH variable not found" 2>&2
exit 2
fi
binAbsName JAVA_HOME CLASSPATH 应该是否定判断 function install() {