dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 02d2205694b9ef9a58b371a85908acc22bf98f28
parent 84fccbb723a08bbfa612f9255c65cef003918448
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Wed, 23 Feb 2022 16:49:26 +0100

mlm: fix print statements

Diffstat:
Mscripts/mlm | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/mlm b/scripts/mlm @@ -86,7 +86,7 @@ verify_recently_added() { while read -r f; do printf '%s' "$f" | grep '^#' >/dev/null 2>&1 && { ctr=$((ctr+1)); continue; } printf "\r%d/%d" $ctr "$lns" - stat "$MUSIC_DIR/$f" >/dev/null 2>&1 || echo "$f"; + stat "$MUSIC_DIR/$f" >/dev/null 2>&1 || printf "\t%s\n" "$f"; ctr=$((ctr+1)); done < "$RECENTLY_ADDED_PLAYLIST" } @@ -124,7 +124,7 @@ organize_files() { album="$(ffprobe -loglevel error -show_entries format_tags=album -of default=noprint_wrappers=1:nokey=1 "$i" | tr -d ':' | tr '+!@#$%^&*:?>\\"' '_' | sed 's/\.\.*$//')" [ -n "$album" ] || { mv "$i" _failed/ && continue; } mkdir -p "$artist/$album" - printf "%s -> %s" "$i" "$artist/$album" + printf "%s -> %s\n" "$i" "$artist/$album" mv "$i" "$artist/$album" done rmdir _failed 1>/dev/null 2>&1 || printf "Some tracks were not organised automatically, they are in ./_failed/"