From e91462b3d9c8e63673aaba85b050512fc047d484 Mon Sep 17 00:00:00 2001 From: diegantobass Date: Tue, 24 Jun 2025 06:34:02 +0200 Subject: [PATCH] remove printf -v because it's illegal in most countries --- bandcamp_format_utility.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bandcamp_format_utility.sh b/bandcamp_format_utility.sh index 6e5c132..d375d7d 100755 --- a/bandcamp_format_utility.sh +++ b/bandcamp_format_utility.sh @@ -31,7 +31,7 @@ for f in $files; "$f" # moves the files to a correct name into an artist/album/ folder - printf -v file_name '%02d - %s.mp3' "$track_number" "$track" + new_name=$(printf '%02d - %s.mp3' "$track_number" "$track") mkdir -p "$artist" mkdir -p "$artist/$album" mv "$f" "$artist/$album/$file_name"