Ajout d'un script de création d'arborescence pour les LP
This commit is contained in:
parent
4304f30d2a
commit
6122d8d576
1 changed files with 16 additions and 0 deletions
16
bin/createLP.sh
Executable file
16
bin/createLP.sh
Executable 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}"
|
Loading…
Reference in a new issue