diff options
Diffstat (limited to 'bandcamp-dl.sh')
-rwxr-xr-x | bandcamp-dl.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bandcamp-dl.sh b/bandcamp-dl.sh index b79c43d..9c7c658 100755 --- a/bandcamp-dl.sh +++ b/bandcamp-dl.sh @@ -12,7 +12,7 @@ base=$(echo $1 | sed -e "s/\/$//") urls=$(curl $base -o /tmp/bandcamp_out &> /dev/null ; cat /tmp/bandcamp_out | grep "href=\"/album" | cut -d"\"" -f2) -base=$(echo $base | sed -e "s/\/music//") +base=$(echo $base | sed -e "s/\/music$//") for url in $urls; do echo "Downloading $(echo $url | sed -e "s/^\/album\///g") album..." |