Put the last played nodes in the right spot
authorCameron Ball <cameron@cameron1729.xyz>
Sun, 10 Mar 2019 10:02:40 +0000 (18:02 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Sun, 10 Mar 2019 10:02:40 +0000 (18:02 +0800)
ScoreSync.sh

index 0ed8f84..103effb 100755 (executable)
@@ -173,6 +173,8 @@ if [ "$1" = "apply" ]; then
 \n<Score>42069</Score>\
 \n</HighScore>\
 \n</HighScoreList>\
+\n<LastPlayed>2019-03-10</LastPlayed>\
+\n<NumTimesPlayed>1</NumTimesPlayed>\
 \n</Steps>"
 
             processed_pranks[$j]+="pranked"
@@ -213,6 +215,8 @@ if [ "$1" = "apply" ]; then
 \n<Score>42069</Score>\
 \n</HighScore>\
 \n</HighScoreList>\
+\n<LastPlayed>2019-03-10</LastPlayed>\
+\n<NumTimesPlayed>1</NumTimesPlayed>\
 \n</Steps>"
 
                             echo "Song           : $song_dir"
@@ -227,7 +231,7 @@ if [ "$1" = "apply" ]; then
                 done
             done
 
-            new_nodes="$new_nodes\n<LastPlayed>2019-03-10</LastPlayed>\n<NumTimesPlayed>1</NumTimesPlayed>\n</Song>"
+            new_nodes="$new_nodes\n</Song>"
         fi
     done