aboutsummaryrefslogtreecommitdiff
path: root/playlist-get
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-05-18 22:17:09 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-05-18 22:17:09 -0300
commit33a9e66447ce8a808669f879ccadadd04e0c00aa (patch)
tree4a863086ceb17eb2e951346abd9905aac5bfebeb /playlist-get
parent9672b0581cba2cd226ac199e62b3c106921d771c (diff)
downloadscripts-33a9e66447ce8a808669f879ccadadd04e0c00aa.tar.gz
scripts-33a9e66447ce8a808669f879ccadadd04e0c00aa.tar.bz2
Fixing playlist-get
Diffstat (limited to 'playlist-get')
-rwxr-xr-xplaylist-get4
1 files changed, 3 insertions, 1 deletions
diff --git a/playlist-get b/playlist-get
index 5aea297..170f6be 100755
--- a/playlist-get
+++ b/playlist-get
@@ -57,7 +57,9 @@ cat $PLAYLISTS/$PLAYLIST.m3u | while read file; do
prefix="/$(dirname "$file")"
mkdir -p "$DEST$prefix"
$APP $action "$file" "$DEST$prefix"
- else
+ elif [ "$action" == "get" ]; then
$APP $action "$file"
+ else
+ $APP $action "$file" $DEST
fi
done