Skip to content

Instantly share code, notes, and snippets.

@brunoamaral
Created December 21, 2021 10:26
Show Gist options
  • Save brunoamaral/71ceca34591b33915656394b5fb4c550 to your computer and use it in GitHub Desktop.
Save brunoamaral/71ceca34591b33915656394b5fb4c550 to your computer and use it in GitHub Desktop.
This tiny script will fetch and install the latest version of Hugo in Ubuntu.
#! /bin/bash
wget https://github.com`wget -qO- https://github.com/gohugoio/hugo/releases/latest | grep -oE -m 1 '/gohugoio/hugo/releases/download/v[0-9].[0-9][0-9].[0-9]/hugo_extended_[0-9].[0-9][0-9].[0-9]_Linux-64bit.deb'`
tar -xzf hugo*.tar.gz
sudo dpkg -i hugo*.deb && rm hugo*.deb;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment