Ver código fonte

trackchange.sh tries only once when server not answering

Thomas Buck 10 anos atrás
pai
commit
bc7b17285a

BIN
PlayPauseiTunesInstacastVLC.scpt Ver arquivo


BIN
SongArtist.scpt Ver arquivo


BIN
SongLength.scpt Ver arquivo


BIN
SongLengthRemaining.scpt Ver arquivo


BIN
SongLyrics.scpt Ver arquivo


BIN
SongName.scpt Ver arquivo


+ 3
- 2
trackchange.sh Ver arquivo

@@ -21,9 +21,10 @@ if [ "$1" != "$lasttrack" ]; then
21 21
         cat /Users/thomas/.trackhistory >> /Users/thomas/.tmpfile
22 22
         echo "</pre><p><a href="http://xythobuz.de">Return...</a></p></body></html>" >> /Users/thomas/.tmpfile
23 23
 
24
-        scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
25 24
         echo $1 > /Users/thomas/.lasttrack
26 25
         echo "<b>$1</b> by <b>$2</b> on <b>$3</b> at <i>${datum}</i>" >> /Users/thomas/.trackhistory
27 26
         tail -n 3 /Users/thomas/.trackhistory | tee /Users/thomas/.trackhistory
27
+        
28
+        scp /Users/thomas/.tmpfile zaphod:/var/www/lastmusic
28 29
     fi
29
-fi
30
+fi

Carregando…
Cancelar
Salvar