diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-08-05 16:35:24 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-08-28 18:23:01 +0200 |
commit | 45e1084ff2d47efe0ae83a984a8723abd135ca48 (patch) | |
tree | c226bd12ff7af7a6414dc52fae4a66106792ad8e /release-hook-post-linux.sh | |
parent | c98348416cfa90026ef8fba93d6c0babe0f41d52 (diff) | |
download | hugo-45e1084ff2d47efe0ae83a984a8723abd135ca48.tar.gz hugo-45e1084ff2d47efe0ae83a984a8723abd135ca48.zip |
Add linux/arm64 extended to release setup
Fixes #8257
Diffstat (limited to 'release-hook-post-linux.sh')
-rwxr-xr-x | release-hook-post-linux.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release-hook-post-linux.sh b/release-hook-post-linux.sh new file mode 100755 index 000000000..e97e274a8 --- /dev/null +++ b/release-hook-post-linux.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Se https://github.com/gohugoio/hugo/issues/8955 +objdump -T dist/hugo_extended_linux_linux_amd64/hugo | grep -E -q 'GLIBC_2.2[0-9]' +RESULT=$? +if [ $RESULT -eq 0 ]; then + echo "Found GLIBC_2.2x in Linux binary, this will not work in older Vercel/Netlify images."; + exit -1; +fi |