create the dir if not existing

This commit is contained in:
Daniel Hansson 2019-04-10 22:22:53 +02:00 committed by GitHub
parent ea64b1e55c
commit 127943e702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
lib.sh
View File

@ -211,6 +211,10 @@ site_200() {
# 2 = name of file
# 3 = directory that the file should end up in
curl_to_dir() {
if [ ! -d "$3" ]
then
mkdir -p "$3"
fi
check_command curl -sSL "$1"/"$2" -o "$3"/"$2"
}