diff options
author | crupest <crupest@outlook.com> | 2022-12-02 14:02:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-12-02 14:02:11 +0800 |
commit | 165afe9fab48d7531ebc84747badfa4eac292407 (patch) | |
tree | 77acf5f9b4364ab407400244711b9bf09b4d8713 /docker/crupest-blog/install-hugo.bash | |
parent | 2d938f13168e7e68d902d31f7e7565c55bc1a0d0 (diff) | |
download | crupest-165afe9fab48d7531ebc84747badfa4eac292407.tar.gz crupest-165afe9fab48d7531ebc84747badfa4eac292407.tar.bz2 crupest-165afe9fab48d7531ebc84747badfa4eac292407.zip |
Try to fix hugo. v2
Diffstat (limited to 'docker/crupest-blog/install-hugo.bash')
-rwxr-xr-x | docker/crupest-blog/install-hugo.bash | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/docker/crupest-blog/install-hugo.bash b/docker/crupest-blog/install-hugo.bash deleted file mode 100755 index ff83b3c..0000000 --- a/docker/crupest-blog/install-hugo.bash +++ /dev/null @@ -1,10 +0,0 @@ -#! /usr/bin/env bash - -set -e - -VERSION=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases/latest | grep '"tag_name":' | sed -E 's/.*"v([^"]+)".*/\1/') -url="https://github.com/gohugoio/hugo/releases/download/v${VERSION}/hugo_extended_${VERSION}_linux-amd64.tar.gz" -curl -fL -o /root/hugo.tar.gz "${url}" -tar -xzf /root/hugo.tar.gz -C /usr/bin hugo - -hugo version |