Skip to content

Commit 4fd6a95

Browse files
committed
Don't assume Yarn Spinner is at ../YarnSpinner
1 parent 7e75510 commit 4fd6a95

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sync-yarnspinner-dlls.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# Usage: ./sync-yarnspinner-dlls.sh {PATH TO YARNSPINNER-UNITY PROJECT}
77

88
set -e
9-
pushd $1
10-
11-
YARNSPINNER_FOLDER=$(readlink -f $1/../YarnSpinner)
129

10+
YARNSPINNER_FOLDER=$(readlink -f "$(dirname $0)")
1311
YARNSPINNER_DLLS_DIR=$1/Packages/dev.yarnspinner.unity/Runtime/DLLs/
1412

13+
pushd $1
14+
1515
if [ ! -d $YARNSPINNER_DLLS_DIR ]; then
1616
echo "Can't copy Yarn Spinner DLLS to $YARNSPINNER_DLLS_DIR because this directory does not exist"
1717
exit 1

0 commit comments

Comments
 (0)