Created
October 26, 2020 13:22
-
-
Save featherbear/ad7fcb898fbf4438373cb618bbb8fe9e to your computer and use it in GitHub Desktop.
Download Hugo version X
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
pushd /tmp/ > /dev/null | |
curl -sL https://github.com/gohugoio/hugo/releases/download/v$1/hugo_$1_Linux-64bit.tar.gz | tar -zxf - | |
chmod +x hugo | |
mv hugo "hugo-$1" | |
popd > /dev/null | |
mv /tmp/"hugo-$1" . | |
echo Downloaded Hugo v$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment