From 55cbe02a7b756f3318ee2382584a1f52aa2180ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sun, 30 Oct 2022 17:09:51 +0000 Subject: [PATCH] Add args to the process --- UVtools.WPF/UVtools.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/UVtools.WPF/UVtools.sh b/UVtools.WPF/UVtools.sh index 9738bd6..bd30eee 100644 --- a/UVtools.WPF/UVtools.sh +++ b/UVtools.WPF/UVtools.sh @@ -1,9 +1,10 @@ #!/bin/bash path="$(dirname "$0")" arch="$(uname -m)" # x86_64 or arm64 +args="$@" run_app_normal(){ - "$path/UVtools" + "$path/UVtools" $args } run_app_dotnet(){ @@ -14,7 +15,7 @@ run_app_dotnet(){ fi if [ -f "$path/UVtools.dll" ]; then - dotnet "$path/UVtools.dll" + dotnet "$path/UVtools.dll" $args else echo "Error: UVtools.dll not found." exit -1 @@ -25,7 +26,7 @@ if [ "${OSTYPE:0:6}" == "darwin" ]; then if [ "$arch" == "arm64" ]; then run_app_dotnet elif [ -d "$path/../../../UVtools.app" ]; then - open "$path/../../../UVtools.app" + open -n "$path/../../../UVtools.app" --args $args else run_app_normal fi