Skip to content

Instantly share code, notes, and snippets.

View loic-roux-404's full-sized avatar
🌮
Trying things

Loïc Roux loic-roux-404

🌮
Trying things
View GitHub Profile
@loic-roux-404
loic-roux-404 / install-latest-hugo.sh
Last active November 7, 2020 14:32 — forked from toryalsip/install-latest-hugo.sh
Download latest hugo
#!/bin/bash
# need run as admin
if [ -z $HUGO_VERSION ] ;then
HUGO_VERSION="latest"
API_ENDPOINT="https://api.github.com/repos/gohugoio/hugo/releases/latest"
else
API_ENDPOINT="https://api.github.com/repos/gohugoio/hugo/releases/tags/v$HUGO_VERSION"
fi
HUGO_INSTALL_FILE="/tmp/hugo.deb"