docker-hugo/download.sh

5 lines
449 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env sh
2023-08-28 17:56:21 -05:00
curl $(curl -s https://api.github.com/repos/sass/dart-sass/releases/latest | grep "browser_download_url.*dart-sass-.*-linux-x64.tar.gz" | cut -d : -f 2,3 | tr -d \") -LO
curl $(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep "browser_download_url.*hugo_.*_linux-amd64.tar.gz" | head --lines 1 | cut -d : -f 2,3 | tr -d \") -LO
tar -xzf dart-sass-*.tar.gz
2023-09-01 22:00:46 -05:00
tar -xzf hugo_*_linux-amd64.tar.gz --one-top-level