- Improve run.sh to allow direct call with appl full path in one argument,
- Now support 580.105.08 driver, - Now use rx3-docker/x11-pulse:1.2.6-mga9 image, - Rebuild for updates.
This commit is contained in:
17
bin/run.sh
17
bin/run.sh
@@ -15,7 +15,7 @@ while [[ "$1" == "-h" || "$1" == "-d" || "$1" == "-i" ]]
|
||||
do
|
||||
if [[ "$1" == "-h" ]]
|
||||
then
|
||||
echo "usage: run.sh [-h] [-d] [-i] <Application_Dir> <Application_Exec> [Args...]"
|
||||
echo "usage: run.sh [-h] [-d] [-i] [<Application_Dir> <Application_Exec> | <Application_Exec>] [Args...]"
|
||||
echo "with -d disabling sound,"
|
||||
echo "with -i enabling internet access."
|
||||
|
||||
@@ -35,11 +35,18 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
export APPL_DIR="$1"
|
||||
shift
|
||||
if [[ -d "$1" ]]
|
||||
then
|
||||
export APPL_DIR="$1"
|
||||
shift
|
||||
|
||||
export APPL_NAME="$1"
|
||||
shift
|
||||
export APPL_NAME="$1"
|
||||
shift
|
||||
else
|
||||
export APPL_DIR="$( dirname $1)"
|
||||
export APPL_NAME="./$(basename $1)"
|
||||
shift
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user