Remove bad exit line and update FaveSync to use DIR
authorCameron Ball <cameron@cameron1729.xyz>
Sun, 10 Mar 2019 08:13:35 +0000 (16:13 +0800)
committerCameron Ball <cameron@cameron1729.xyz>
Sun, 10 Mar 2019 08:13:35 +0000 (16:13 +0800)
FaveSync.sh
ScoreSync.sh

index c4d0ac3..5036f28 100755 (executable)
@@ -15,7 +15,7 @@ if [ "$1" = "push" ]; then
 fi
 
 if [ "$1" = "pull" ]; then
-    scp groovenet@cameron1729.xyz:/mnt/media/GrooveNet/* ./
+    scp groovenet@cameron1729.xyz:/mnt/media/GrooveNet/* "$DIR"
 fi
 
 if [ "$1" = "apply" ]; then
index 7039362..21f60cb 100755 (executable)
@@ -239,8 +239,6 @@ if [ "$1" = "apply" ]; then
     echo -e "${last_tags_removed}${new_nodes}\n</SongScores>\n</Stats>" > "${path_to_stats}"
 fi
 
-
-exit
 if [ "$1" = "push" ]; then
     if find "${DIR}"/*.favourites.txt -type f -print -quit 2>/dev/null | grep -q .; then
         echo "$me_highscore_name" > "${DIR}/$me.scores.txt"