diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-12-24 17:38:18 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-12-24 17:38:18 -0200 |
commit | cd90fba34712035ae288de4886cd737b1aa99476 (patch) | |
tree | 2634cced4fa7bb2f5e09db006aaee527d94571a2 /playlist-get | |
parent | 2f4149230f14dbee63656c58528c0585e9c1d6a9 (diff) | |
download | playlister-cd90fba34712035ae288de4886cd737b1aa99476.tar.gz playlister-cd90fba34712035ae288de4886cd737b1aa99476.tar.bz2 |
Ensure dest exists for adb method on playlist-copy
Diffstat (limited to 'playlist-get')
-rwxr-xr-x | playlist-get | 3 |
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 |