aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-11-26 19:06:20 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-11-26 19:06:20 -0200
commitc04d6ce0f809b800c278cb3e88669e06222ee5af (patch)
tree107363987955814f637fa26feb4a1705872c9902
parenta2ee5a327f96cfbd91ca48c360a2b81a7e0bf282 (diff)
downloadplaylister-c04d6ce0f809b800c278cb3e88669e06222ee5af.tar.gz
playlister-c04d6ce0f809b800c278cb3e88669e06222ee5af.tar.bz2
Fix playlist-copy for adb target
-rwxr-xr-xplaylist-get5
1 files changed, 3 insertions, 2 deletions
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