From 918e1eaa2bff558c6d585d1f391ea5b9c0f0adbf Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 16 Mar 2019 13:25:31 +0000 Subject: [PATCH] Remove netlify hack https://twitter.com/GoHugoIO/status/1106282569161687042 --- netlify.toml | 2 +- scripts/netlify.sh | 17 ----------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100755 scripts/netlify.sh diff --git a/netlify.toml b/netlify.toml index 805b988..67023e0 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] publish = "public/" - command = "./scripts/netlify.sh" + command = "./scripts/release.sh" [build.environment] HUGO_VERSION = "0.54.0" diff --git a/scripts/netlify.sh b/scripts/netlify.sh deleted file mode 100755 index cae86ef..0000000 --- a/scripts/netlify.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -# https://github.com/netlify/build-image/issues/183#issuecomment-419199649 - -HUGO_FLAVOUR="hugo_extended" - -rm -rf *.deb -wget --no-clobber http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb || exit 1 -wget --no-clobber https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_FLAVOUR}_${HUGO_VERSION}_Linux-64bit.deb || exit 1 -grep "hugo=" ~/.bashrc || echo "alias hugo='LD_LIBRARY_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu $(pwd)/tmp/usr/local/bin/hugo'" >> ~/.bashrc -find -name '*.deb' -exec dpkg -x {} $(pwd)/tmp \; -rm -rf *.deb - -export LD_LIBRARY_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu -export PATH=$(pwd)/tmp/usr/local/bin:$PATH - -./scripts/release.sh