From c04d6ce0f809b800c278cb3e88669e06222ee5af Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 26 Nov 2018 19:06:20 -0200 Subject: Fix playlist-copy for adb target --- playlist-get | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'playlist-get') diff --git a/playlist-get b/playlist-get index a6d5b02..f184061 100755 --- a/playlist-get +++ b/playlist-get @@ -49,7 +49,8 @@ elif [ "$BASENAME" == "playlist-copy" ]; then elif [ "$DEST" == "adb" ]; then APP="adb" action="push" - DEST="/storage/emulated/0/Music" + #DEST="/storage/emulated/0/Music" + DEST="/sdcard/Music" else DEST="--to $DEST" action="copy" @@ -71,7 +72,7 @@ cat $PLAYLISTS/$PLAYLIST.m3u | while read file; do $APP $action "$file" elif [ "$APP" == "adb" ]; then prefix="/$(dirname "$file")" - $APP shell mkdir -p "$DEST$prefix" &> /dev/null + echo mkdir -p \"$DEST$prefix\" | adb shell $APP $action "$file" "$DEST$prefix" else $APP $action "$file" $DEST -- cgit v1.2.3