From 0ee5e925ea73d4c2e1a830d38487fb47c00f6948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Wed, 19 Oct 2022 16:33:03 +0100 Subject: [PATCH] Fix single quotes --- Scripts/install-uvtools.sh | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Scripts/install-uvtools.sh b/Scripts/install-uvtools.sh index e1b38c3..e2739b2 100644 --- a/Scripts/install-uvtools.sh +++ b/Scripts/install-uvtools.sh @@ -57,17 +57,19 @@ if [ "${OSTYPE:0:6}" == "darwin" ]; then # arm64: Create script on user desktop to run UVtools if [ "$arch_name" == "arm64" ]; then run_script="$HOME/Desktop/run-uvtools.sh" - echo '#!/bin/bash -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" & + + echo "#!/bin/bash +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\" fi -' > "$run_script" +" > "$run_script" + chmod a+x "$run_script" - echo "Note: Always run 'bash run-uvtools.sh' from desktop to run UVtools on your mac arm64!" + echo "Note: Always run \"bash run-uvtools.sh\" from desktop to run UVtools on your mac arm64!" fi if [ -f "$appPath/Contents/MacOS/UVtools.sh" ]; then @@ -139,7 +141,7 @@ if [ -d "$HOME/Applications" ]; then mv -f "$tmpfile" "$HOME/Applications" "$HOME/Applications/$filename" & - echo "If prompt for 'Desktop integration', click 'Integrate and run'" + echo "If prompt for \"Desktop integration\", click \"Integrate and run\"" else echo "- Removing old versions" rm -f UVtools_*.AppImage