1
0
mirror of https://github.com/burghardt/easy-wg-quick.git synced 2024-11-24 08:42:29 +02:00

Fixed code formatting reported by shfmt.

This commit is contained in:
Krzysztof Burghardt 2024-09-03 23:24:39 +02:00
parent 7b78937095
commit d657a91afc
No known key found for this signature in database
GPG Key ID: 20D1B02D50095EA7

View File

@ -695,8 +695,8 @@ upgrade_easy_wg_quick() {
REPO='burghardt/easy-wg-quick'
APIURL="https://api.github.com/repos/${REPO}/releases/latest"
APIDATA="$(curl -sL "${APIURL}" || \
wget -qO- "${APIURL}" || \
APIDATA="$(curl -sL "${APIURL}" ||
wget -qO- "${APIURL}" ||
fetch -qo- "${APIURL}")"
TAG="$(echo "${APIDATA}" | grep -oP '"tag_name": "\K(.*?)(?=")')"
DLURL="https://raw.githubusercontent.com/${REPO}/${TAG}/easy-wg-quick"