diff --git a/ReadMe.txt b/ReadMe.txt index 1d6e8a9..00b2296 100644 --- a/ReadMe.txt +++ b/ReadMe.txt @@ -11,7 +11,7 @@ Features: - Optional output internet routing. Usage: - ./bin/run.sh [-h] [-i] [Args...] + ./bin/run.sh [-h] [-i] [ | ] [Args...] diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 94bf1d9..7d29c7b 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,3 +1,11 @@ +------------------------------------------------------------------------------------------------------------------------------------ +Rx3-Docker/X11-Pulse V 1.2.6 - A. GIBERT - 2025/11/xx +------------------------------------------------------------------------------------------------------------------------------------ + +- Improve run.sh to allow direct call with appl full path in one argument, + + + ------------------------------------------------------------------------------------------------------------------------------------ Rx3-Docker/X11-Pulse V 1.2.5 - A. GIBERT - 2025/09/19 ------------------------------------------------------------------------------------------------------------------------------------ diff --git a/bin/run.sh b/bin/run.sh index e3855ca..9fa858f 100755 --- a/bin/run.sh +++ b/bin/run.sh @@ -10,7 +10,7 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")" if [[ "$1" == "-h" ]] then - echo "usage: run.sh [-h] [-i] [Args...]" + echo "usage: run.sh [-h] [-i] [ | ] [Args...]" echo "with -i enabling internet access." exit 0 @@ -24,11 +24,19 @@ else export APPL_NETWORK="no-internet" fi -export APPL_DIR="$1" -shift +if [[ -d "$1" ]] +then + export APPL_DIR="$1" + shift + + export APPL_NAME="$1" + shift +else + export APPL_DIR="$( dirname $1)" + export APPL_NAME="./$(basename $1)" + shift +fi -export APPL_NAME="$1" -shift diff --git a/env.dist b/env.dist index 1ede6b3..b67cd05 100644 --- a/env.dist +++ b/env.dist @@ -20,7 +20,7 @@ ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}" APPL_NAME="x11-pulse" APPL_NAME_FULL="X11-Pulse Docker Image" APPL_NAME_SHORT="x11-pulse" -APPL_VERSION="1.2.5" +APPL_VERSION="1.2.6" HOST_NAME_PREFIX=${APPL_NAME_SHORT}${APPL_SUFFIX}