1#!/bin/sh
2if [ ! -z "$1" ] && [ ! -z "$2" ] && [ ! -z "$3" ]
3then
4
5echo "Creating new artist.."
6mkdir $1
7cd $1
8
9VAR="---\ntitle: $1\nspotify: spotify:artist:6v8FB84lnmJs434UJf2Mrm\nalbuns: none\ndate: 2019-01-09T22:12:03.284Z\ntype: $2\nsongs: Mellow my mind\nimage: neilyoung\ncountry: "$3"\n---\n\nWe are currently udpating the info. This artist was recently added: $1\n"
10
11touch index.md
12
13echo ${VAR} >> index.md
14
15echo "Done!"
16
17else
18 echo "Please specify an artist name. Example: './create-new-artist louie-vega rock usa'"
19fi
20
Created on 2/1/2019