- Improve run.sh to allow direct call with appl full path in one argument.

This commit is contained in:
Arnaud G. GIBERT 2025-11-06 16:28:11 +01:00
parent 1935ad1b30
commit b70332a608
4 changed files with 23 additions and 7 deletions

View File

@ -11,7 +11,7 @@ Features:
- Optional output internet routing.
Usage:
./bin/run.sh [-h] [-i] <Application Dir> <Application Exec> [Args...]
./bin/run.sh [-h] [-i] [<Application_Dir> <Application_Exec> | <Application_Exec>] [Args...]

View File

@ -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
------------------------------------------------------------------------------------------------------------------------------------

View File

@ -10,7 +10,7 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
if [[ "$1" == "-h" ]]
then
echo "usage: run.sh [-h] [-i] <Application_Dir> <Application_Exec> [Args...]"
echo "usage: run.sh [-h] [-i] [<Application_Dir> <Application_Exec> | <Application_Exec>] [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

View File

@ -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}