home/bin/createLP.sh

18 lines
289 B
Bash
Executable file

#! /bin/bash
if [ "$#" -ne 2 ]; then
echo Usage: createLp.sh \"artist/album\" https://cover
exit 1
fi
cd ~
mkdir -p "Vinyles/${1}"
mkdir -p "Music/Vinyles/${1}"
wget ${2} -O /tmp/cover.jpg
cp /tmp/cover.jpg "Vinyles/${1}"
cp /tmp/cover.jpg "Music/Vinyles/${1}"
rm /tmp/cover.jpg