dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 713d72815d9d96157906e95358d0f9ae4ac16389
parent e2da93a4b3789908bf9b239ed5d546a260bd6bfb
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 16 Aug 2019 12:14:21 +0200

Small youtube-dl-music fixes

Diffstat:
M.local/bin/youtube-dl-music | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/.local/bin/youtube-dl-music b/.local/bin/youtube-dl-music @@ -66,21 +66,20 @@ else done # Revert default behavior IFS=$SAVEIFS + if [[ "$(uname)" == 'Darwin' ]]; then + musicroot="$HOME/Music/iTunes/iTunes Media/Music/" + else + musicroot="$HOME/music/" + fi - read -p "move to music folder? [Y/n] " -n 1 -r + read -p "move to music folder ($musicroot)? [Y/n] " -n 1 -r echo - if [[ $REPLY =~ ^[Nn]$ ]]; then + if [[ $REPLY =~ ^[Nn]$ ]]; + echo "leaving mp3's in $oldpwd" mv ./*.mp3 "$oldpwd/" cd - exit 0 else - - if [[ "$(uname)" == 'Darwin' ]]; then - musicroot="$HOME/Music/iTunes/iTunes Media/Music/" - else - musicroot="$HOME/music/" - fi - outdir="$musicroot/$artist/$album" mkdir -p "$outdir" mv ./*.mp3 "$outdir"