mirror of
https://github.com/riegera2412/UVtools.git
synced 2026-07-08 17:42:31 +02:00
Update install-uvtools.sh
This commit is contained in:
@@ -59,18 +59,18 @@ if [ "${OSTYPE:0:6}" == "darwin" ]; then
|
||||
if [ "$arch_name" == "arm64" ]; then
|
||||
run_script="$HOME/Desktop/run-uvtools"
|
||||
|
||||
echo "#!/bin/bash
|
||||
cd \"$(dirname \"\$0\")\"
|
||||
echo '#!/bin/bash
|
||||
cd "$(dirname "$0")"'"
|
||||
if [ -f \"$appPath/Contents/MacOS/UVtools.sh\" ]; then
|
||||
bash \"$appPath/Contents/MacOS/UVtools.sh\" &
|
||||
elif [ -f \"UVtools.app/Contents/MacOS/UVtools.sh\" ]; then
|
||||
bash \"UVtools.app/Contents/MacOS/UVtools.sh\" &
|
||||
else
|
||||
echo Error: UVtools.app not found on known paths
|
||||
echo 'Error: UVtools.app not found on known paths'
|
||||
exit -1
|
||||
fi
|
||||
|
||||
echo \"You can now close this terminal window.\"
|
||||
echo 'You can now close this terminal window.'
|
||||
" > "$run_script"
|
||||
|
||||
chmod a+x "$run_script"
|
||||
|
||||
Reference in New Issue
Block a user