remove file if already existing

This commit is contained in:
Daniel Hansson 2019-06-07 17:12:02 +02:00 committed by GitHub
parent 2fee51f99e
commit d0da4f399d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
lib.sh
View File

@ -246,6 +246,7 @@ if [ ! -d "$3" ]
then
mkdir -p "$3"
fi
rm -f "$3"/"$2"
curl -sfL "$1"/"$2" -o "$3"/"$2"
}