home/bin/createLP.sh

17 lines
252 B
Bash
Raw Normal View History

#! /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}"