From 642b1309dab9eea2c7df48b206a111595b5526fd Mon Sep 17 00:00:00 2001 From: Robert Lee Date: Sun, 30 Apr 2023 16:31:21 -0400 Subject: [PATCH 1/2] use bash {BASH_SOURCE[0]} to locate script dir modified: dist/unix/jsqsh --- jsqsh-dist/dist/unix/jsqsh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/jsqsh-dist/dist/unix/jsqsh b/jsqsh-dist/dist/unix/jsqsh index 81b135d..e274c59 100755 --- a/jsqsh-dist/dist/unix/jsqsh +++ b/jsqsh-dist/dist/unix/jsqsh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash # # jsqsh - This shell script attempts to launch org.sqsh.JSqsh. # it does its best to try to figure out where various files @@ -9,11 +9,7 @@ # # This determines the location of this shell script. # -PROG=$(readlink "$0") -while [ -L "$PROG" ]; do - PROG=$(readlink "$PROG") -done -PROG_DIR=$(dirname "$PROG") +PROG_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) # # The parent directory of where this script was found From 7354f843bb38df4524a93960951e89d1c6898c9d Mon Sep 17 00:00:00 2001 From: Robert Lee Date: Sun, 30 Apr 2023 16:47:07 -0400 Subject: [PATCH 2/2] add ${java.home}/bin/javadoc modified: pom.xml --- pom.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f6e87d5..f3763aa 100644 --- a/pom.xml +++ b/pom.xml @@ -95,7 +95,8 @@ maven-javadoc-plugin 2.9.1 - -Xdoclint:none + -Xdoclint:none + ${java.home}/bin/javadoc