]> gitweb.fluxo.info Git - playlister.git/commitdiff
Ensure dest exists for adb method on playlist-copy
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 24 Dec 2016 19:38:18 +0000 (17:38 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 24 Dec 2016 19:38:18 +0000 (17:38 -0200)
playlist-get

index 6c4dd51bed183585ddaaf3505c6d9656fef757c8..5f69e8a2e7694f3214a5dd1f3bba1e793070c627 100755 (executable)
@@ -71,7 +71,8 @@ cat $PLAYLISTS/$PLAYLIST.m3u | while read file; do
     $APP $action "$file"
   elif [ "$action" == "adb" ]; then
     prefix="/$(dirname "$file")"
-    $APP push "$file" "$DEST$prefix"
+    $APP shell mkdir -p "$DEST$prefix" &> /dev/null
+    $APP push "$file"   "$DEST$prefix"
   else
     $APP $action "$file" $DEST
   fi