Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 8a87d8e

Browse files
authored
Fix some issues with path handling
c:\\ is more reliable than /c/, given that the shell might not mount the drive in that particular mount point, but c:\\ will always be a thing that exists on windows. Add "" in the path to unity to make sure we can handle spaces in paths properly
1 parent b762958 commit 8a87d8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ git clean -xdf
2323
popd
2424

2525
OS="Mac"
26-
if [ -e "/c/" ]; then
26+
if [ -e "c:\\" ]; then
2727
OS="Windows"
2828
fi
2929

@@ -37,7 +37,7 @@ if [ x"$OS" == x"Windows" ]; then
3737
else
3838
if [ -f "$1/Unity.app/Contents/MacOS/Unity" ]; then
3939
Unity="$1/Unity.app/Contents/MacOS/Unity"
40-
elif [ -f $1/Unity ]; then
40+
elif [ -f "$1/Unity" ]; then
4141
Unity="$1/Unity"
4242
else
4343
echo "Can't find Unity in $1"

0 commit comments

Comments
 (0)