Updated plugin retrieval to overwrite exiting file

This commit is contained in:
Michael Starke
2019-08-27 10:15:11 +02:00
parent 9298feea2d
commit c295f5df6f

View File

@@ -1,6 +1,7 @@
#!/bin/bash
URL="https://macpassapp.org/data/plugins.json"
FILE="plugins.json"
URL="https://macpassapp.org/data/${FILE}"
MY_FOLDER="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
DOWNLOAD_FOLDER="${MY_FOLDER}/../MacPass/Resources/"
cd "${DOWNLOAD_FOLDER}"
wget "${URL}"
wget -O "${FILE}" "${URL}"