aboutsummaryrefslogtreecommitdiff
path: root/playlist-get
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-12-24 17:38:18 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-12-24 17:38:18 -0200
commitcd90fba34712035ae288de4886cd737b1aa99476 (patch)
tree2634cced4fa7bb2f5e09db006aaee527d94571a2 /playlist-get
parent2f4149230f14dbee63656c58528c0585e9c1d6a9 (diff)
downloadplaylister-cd90fba34712035ae288de4886cd737b1aa99476.tar.gz
playlister-cd90fba34712035ae288de4886cd737b1aa99476.tar.bz2
Ensure dest exists for adb method on playlist-copy
Diffstat (limited to 'playlist-get')
-rwxr-xr-xplaylist-get3
1 files changed, 2 insertions, 1 deletions
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