Ajout d'un script de création d'arborescence pour les LP

This commit is contained in:
Damien Broqua 2022-06-03 05:35:29 +02:00
parent 4304f30d2a
commit 6122d8d576

16
bin/createLP.sh Executable file
View File

@ -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}"