From 6122d8d5766f23883f588d856e22b2fe87431adf Mon Sep 17 00:00:00 2001 From: dbroqua Date: Fri, 3 Jun 2022 05:35:29 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20d'un=20script=20de=20cr=C3=A9ation=20d'?= =?UTF-8?q?arborescence=20pour=20les=20LP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/createLP.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/createLP.sh diff --git a/bin/createLP.sh b/bin/createLP.sh new file mode 100755 index 0000000..b1a469e --- /dev/null +++ b/bin/createLP.sh @@ -0,0 +1,16 @@ +#! /bin/bash + +if [ "$#" -ne 2 ]; then + echo Usage: createLp.sh \"artist/album\" https://cover + exit 1 +fi + +cd ~/Vinyles + +mkdir -p "Raw/${1}" +mkdir -p "Flac/${1}" + +wget ${2} -O /tmp/cover.jpg + +cp /tmp/cover.jpg "Raw/${1}" +cp /tmp/cover.jpg "Flac/${1}"