Add quotes around the romfile to capture spaces and other characters. (#1831)

Co-authored-by: Zachary Boerner <zach@branchcut.org>
This commit is contained in:
Esras 2022-10-22 09:14:53 -07:00 committed by GitHub
parent 1db4e9303e
commit df646794f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ while [[ (! -e "$SHIP_HOME"/oot.otr) || (! -e "$SHIP_HOME"/oot-mq.otr) ]]; do
export OLDPWD="$PWD"
mkdir -p "$ASSETDIR"/tmp
mkdir -p "$ASSETDIR"/Extract
ln -s $romfile "$ASSETDIR"/tmp/rom.z64
ln -s "$romfile" "$ASSETDIR"/tmp/rom.z64
cd "$ASSETDIR"
ROMHASH=$(sha1sum -b "$ASSETDIR"/tmp/rom.z64 | awk '{ print $1 }')
case "$ROMHASH" in