From b1b88cae0a04221adb7fb6f8c0dfcec67e40dae5 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Sun, 10 Mar 2019 16:04:31 +0800 Subject: [PATCH] Quotes bullshit --- ScoreSync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ScoreSync.sh b/ScoreSync.sh index 8ed809a..7039362 100755 --- a/ScoreSync.sh +++ b/ScoreSync.sh @@ -30,14 +30,14 @@ if [ "$1" = "push" ]; then for d in "${difficulties[@]}"; do for t in "${step_types[@]}"; do xmlstarletcmd="$xmlstarletcmd -o \"NEWLIST:$person:$t:$d\" -n \ - -v '//SongScores//Song[starts-with(@Dir, \"Songs/$persons_folder\")]//Steps[@Difficulty=\"$d\" and @StepsType=\"$t\"]//HighScore[1]//Name[text()=\"EVNT\" or text()=\"$me_highscore_name\"]/following-sibling::PercentDP' \ + -v \"//SongScores//Song[starts-with(@Dir, \\\"Songs/$persons_folder\\\")]//Steps[@Difficulty=\\\"$d\\\" and @StepsType=\\\"$t\\\"]//HighScore[1]//Name[text()=\\\"EVNT\\\" or text()=\\\"$me_highscore_name\\\"]/following-sibling::PercentDP\" \ -n -o \"SONGS\" -n \ - -v '//SongScores//Song[starts-with(@Dir, \"Songs/$persons_folder\")]//Steps[@Difficulty=\"$d\" and @StepsType=\"$t\"]//HighScore[1]//Name[text()=\"EVNT\" or text()=\"$me_highscore_name\"]/ancestor::Song/@Dir'" + -v \"//SongScores//Song[starts-with(@Dir, \\\"Songs/$persons_folder\\\")]//Steps[@Difficulty=\\\"$d\\\" and @StepsType=\\\"$t\\\"]//HighScore[1]//Name[text()=\\\"EVNT\\\" or text()=\\\"$me_highscore_name\\\"]/ancestor::Song/@Dir\"" done done done < <(find "${DIR}"/*.favourites.txt -type f -print0) - scores_and_shit=$(eval "xmlstarlet sel -t $xmlstarletcmd -n -o \"NEWLIST\" ${path_to_stats}") + scores_and_shit=$(eval "xmlstarlet sel -t $xmlstarletcmd -n -o \"NEWLIST\" \"${path_to_stats}\"") IFS=$'\n' read -rd '' -a scores_list <<<"$scores_and_shit" echo "$me_highscore_name" > "${DIR}/$me.scores.txt" -- 2.11.0