Mobile-responsive personal website, generated using Hugo. https://kevin-mok.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
599 B

  1. #!/bin/bash
  2. HUGO_FLAVOUR="hugo_extended"
  3. HUGO_VERSION="0.53"
  4. [ -z "${NF_IMAGE_VERSION}" ] && exit 0
  5. rm -fr *.deb
  6. 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
  7. wget --no-clobber https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/${HUGO_FLAVOUR}_${HUGO_VERSION}_Linux-64bit.deb || exit 1
  8. grep "hugo=" ~/.bashrc || echo "alias hugo='LD_LIBRARY_PATH=$(pwd)/tmp/usr/lib/x86_64-linux-gnu $(pwd)/tmp/usr/local/bin/hugo'" >> ~/.bashrc
  9. find -name '*.deb' -exec dpkg -x {} $(pwd)/tmp \;
  10. rm -fr *.deb
  11. exit 0