github.com/anakojm/hugo-katex@v0.0.0-20231023141351-42d6f5de9c0b/release-hook-post-linux.sh (about)

     1  #!/bin/bash
     2  
     3  # Se https://github.com/gohugoio/hugo/issues/8955
     4  objdump -T dist/hugo_extended_linux_linux_amd64/hugo | grep -E -q 'GLIBC_2.2[0-9]'
     5  RESULT=$?
     6  if [ $RESULT -eq 0 ]; then
     7      echo "Found  GLIBC_2.2x in Linux binary, this will not work in older Vercel/Netlify images.";
     8      exit -1;
     9  fi