From f12c31b6c921243a22e75a61917227f0fb6344e9 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Sun, 17 Apr 2022 13:15:49 -0700 Subject: [PATCH] Fix docker run command --- docs/SpotDL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/SpotDL.md b/docs/SpotDL.md index a9edb6a..1aa4eeb 100644 --- a/docs/SpotDL.md +++ b/docs/SpotDL.md @@ -7,7 +7,7 @@ To download a track, album, or artist from Spotify, use: This is non-interactive and works programmatically. ## Using Docker Container -If the host has Docker, but you don't want to install any Python packages, you can run single commands with the Docker container with `docker run --rm -it -v $(pwd):/data coritsky/spotdl `. +If the host has Docker, but you don't want to install any Python packages, you can run single commands with the Docker container with `docker run --rm -it -v "$(pwd):/data" coritsky/spotdl `. # Music Library Integration To make updating my library easier, each "Artist" folder has a file called `spot.txt` which contains only the Spotify URL for that artist. This makes it possible to run a loop similar to the following: @@ -19,7 +19,7 @@ for artist in */; do # use spotdl if the host is already configured with spotdl, or you don't need the script to be portable # use docker run for better portability (within my lab) at the expense of overhead spotdl $(cat spot.txt) && - # docker run --rm -it -v $(pwd):/data coritsky/spotdl $(cat spot.txt) && + # docker run --rm -it -v "$(pwd):/data" coritsky/spotdl $(cat spot.txt) && cd .. done ```