home/bin/createLP.sh

19 lines
289 B
Bash
Raw Normal View History

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