From cd90fba34712035ae288de4886cd737b1aa99476 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 24 Dec 2016 17:38:18 -0200 Subject: Ensure dest exists for adb method on playlist-copy --- playlist-get | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playlist-get b/playlist-get index 6c4dd51..5f69e8a 100755 --- a/playlist-get +++ b/playlist-get @@ -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 -- cgit v1.2.3