Skip to content

Commit ab4008c

Browse files
committed
patcher.template.sh: escape variables
Fix issue with spaces in path.
1 parent 6547234 commit ab4008c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Assets/PatchKit Patcher/Editor/patcher.template.sh

100644100755
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ SECRET=$3
66
INSTALLDIR=$4
77
LOCKFILE=$5
88

9-
LD_DIRS=`find $EXEDIR -name "x86_64" -printf "%p:"`
10-
LD_DIRS=$LD_DIRS`find $EXEDIR -name "x86" -printf "%p:"`
9+
LD_DIRS="`find "$EXEDIR" -name "x86_64" -printf "%p:"`"
10+
LD_DIRS="$LD_DIRS`find "$EXEDIR" -name "x86" -printf "%p:"`"
1111

12-
export LD_LIBRARY_PATH=$LD_DIRS
12+
export LD_LIBRARY_PATH="$LD_DIRS"
1313

14-
if [ -n $LOCKFILE ]
14+
if [ -n "$LOCKFILE" ]
1515
then
16-
$EXEDIR/$PATCHER_EXE --installdir $INSTALLDIR --secret $SECRET --lockfile $LOCKFILE
16+
"$EXEDIR/$PATCHER_EXE" --installdir "$INSTALLDIR" --secret "$SECRET" --lockfile "$LOCKFILE"
1717
else
18-
$EXEDIR/$PATCHER_EXE --installdir $INSTALLDIR --secret $SECRET
19-
fi
18+
"$EXEDIR/$PATCHER_EXE" --installdir "$INSTALLDIR" --secret "$SECRET"
19+
fi

0 commit comments

Comments
 (0)