]> gitweb.fluxo.info Git - scripts.git/commitdiff
Fixing playlist-get
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 19 May 2014 01:17:09 +0000 (22:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 19 May 2014 01:17:09 +0000 (22:17 -0300)
playlist-get

index 5aea297cc3ff5344604f7f928b9427f348b4397d..170f6be29541332508be10866ddfba227a0385f0 100755 (executable)
@@ -57,7 +57,9 @@ cat $PLAYLISTS/$PLAYLIST.m3u | while read file; do
     prefix="/$(dirname "$file")"
     mkdir -p "$DEST$prefix"
     $APP $action "$file" "$DEST$prefix"
-  else
+  elif [ "$action" == "get" ]; then
     $APP $action "$file"
+  else
+    $APP $action "$file" $DEST
   fi
 done