From: Cameron Ball Date: Sun, 10 Mar 2019 12:44:51 +0000 (+0800) Subject: More quotes bullshit X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=0b2c6132e285c6f44a380c37569557731b96a03e;p=GrooveNet.git More quotes bullshit --- diff --git a/ScoreSync.sh b/ScoreSync.sh index 3ab26e5..d33de88 100755 --- a/ScoreSync.sh +++ b/ScoreSync.sh @@ -95,7 +95,7 @@ if [ "$1" = "apply" ]; then persons_folder=${external_favourite_naming_scheme/\%person\%/$formatted_person} fi song_dir="Songs/$persons_folder" - xmlstarlet_deletes="-d '//SongScores//Song[starts-with(@Dir, \"${song_dir}\")]' ${xmlstarlet_deletes}" + xmlstarlet_deletes="-d \"//SongScores//Song[starts-with(@Dir, \\\"${song_dir}\\\")]\" ${xmlstarlet_deletes}" IFS=$'\n' read -d '' -r -a lines < $file highscorename=${lines[0]}