From: Cameron Ball Date: Sun, 10 Mar 2019 08:13:35 +0000 (+0800) Subject: Remove bad exit line and update FaveSync to use DIR X-Git-Url: https://git.cameron1729.xyz/?a=commitdiff_plain;h=71aa02f9ef59f42f8ad1a6bae86214fe2fded51d;p=GrooveNet.git Remove bad exit line and update FaveSync to use DIR --- diff --git a/FaveSync.sh b/FaveSync.sh index c4d0ac3..5036f28 100755 --- a/FaveSync.sh +++ b/FaveSync.sh @@ -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 diff --git a/ScoreSync.sh b/ScoreSync.sh index 7039362..21f60cb 100755 --- a/ScoreSync.sh +++ b/ScoreSync.sh @@ -239,8 +239,6 @@ if [ "$1" = "apply" ]; then echo -e "${last_tags_removed}${new_nodes}\n\n" > "${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"