- Improve run.sh to allow direct call with appl full path in one argument.
This commit is contained in:
parent
1935ad1b30
commit
b70332a608
@ -11,7 +11,7 @@ Features:
|
|||||||
- Optional output internet routing.
|
- Optional output internet routing.
|
||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
./bin/run.sh [-h] [-i] <Application Dir> <Application Exec> [Args...]
|
./bin/run.sh [-h] [-i] [<Application_Dir> <Application_Exec> | <Application_Exec>] [Args...]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -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
|
Rx3-Docker/X11-Pulse V 1.2.5 - A. GIBERT - 2025/09/19
|
||||||
------------------------------------------------------------------------------------------------------------------------------------
|
------------------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
18
bin/run.sh
18
bin/run.sh
@ -10,7 +10,7 @@ APPL_HOME_DIR="$(dirname "$(dirname "$0")")"
|
|||||||
|
|
||||||
if [[ "$1" == "-h" ]]
|
if [[ "$1" == "-h" ]]
|
||||||
then
|
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."
|
echo "with -i enabling internet access."
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
@ -24,11 +24,19 @@ else
|
|||||||
export APPL_NETWORK="no-internet"
|
export APPL_NETWORK="no-internet"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export APPL_DIR="$1"
|
if [[ -d "$1" ]]
|
||||||
shift
|
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
env.dist
2
env.dist
@ -20,7 +20,7 @@ ORG_URL_PREFIX="${ORG_REGISTRY}/${ORG_NAME}"
|
|||||||
APPL_NAME="x11-pulse"
|
APPL_NAME="x11-pulse"
|
||||||
APPL_NAME_FULL="X11-Pulse Docker Image"
|
APPL_NAME_FULL="X11-Pulse Docker Image"
|
||||||
APPL_NAME_SHORT="x11-pulse"
|
APPL_NAME_SHORT="x11-pulse"
|
||||||
APPL_VERSION="1.2.5"
|
APPL_VERSION="1.2.6"
|
||||||
|
|
||||||
HOST_NAME_PREFIX=${APPL_NAME_SHORT}${APPL_SUFFIX}
|
HOST_NAME_PREFIX=${APPL_NAME_SHORT}${APPL_SUFFIX}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user