1
0
mirror of https://github.com/PrivSec-dev/privsec.dev synced 2024-09-28 13:34:42 -04:00

Shellchecked (#132)

Signed-off-by: samsepi0l <contact@simpleprivacy.fr>
This commit is contained in:
samsepi0l 2023-06-16 15:16:10 +02:00 committed by GitHub
parent c26ee81c69
commit a06d28e69a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,11 @@
curl -L -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "browser_download_url.*extended.*linux-amd64.tar.gz" | cut -d : -f 2,3 | sed 's/"//g' | xargs wget
tar xvf *.tar.gz
tar xvf ./*.tar.gz
chmod u+x ./hugo
if [ "$CF_PAGES_BRANCH" == "main" ]; then
./hugo --minify
else
./hugo -b $CF_PAGES_URL --minify
./hugo -b "$CF_PAGES_URL" --minify
fi