commit c25213a7d16a709c92cd020f8242546fe021e90e
parent d3545dd5d514642fe6f06fe661cb9f58bafc9144
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Thu, 30 Dec 2021 10:58:44 +0100
mlm: add mp3gain reminder
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/scripts/mlm b/scripts/mlm
@@ -28,6 +28,13 @@ import() {
     esac
   fi
 
+  printf "Did you already run mp3gain? [Y/n] "
+  read -r yn
+  case "$yn" in
+    Y*|y*);;
+    *) die 'Run it now then.';;
+  esac
+
   # Sync current dir into music dir, (u)pdated only, (r)ecursively, (p)reserve
   #   permissions, info about whole transfer, delete originals
   printf "Moving files into library...\n"
@@ -127,6 +134,6 @@ case "$1" in
   import) import;;
   check-recent) verify_recently_added;;
   embed-lyrics) embed_lyrics;;
-  organise|organize) organize_files "$@";;
+  organise|organize) organize_files "$2" "$3";;
   *) printf "Supported commands: import, check-recent, embed-lyrics, organise\n"; exit 0;;
 esac