From a9b2422dd58cd8d0a0327c22f542cb1eb7970686 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Wed, 23 Dec 2020 12:05:35 +0100 Subject: [PATCH] definitive fix for netlify ? --- hugo | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/hugo b/hugo index de52518..03732e5 100755 --- a/hugo +++ b/hugo @@ -8,19 +8,12 @@ function cleanup() { if [ -n "${NETLIFY_BUILD_BASE:-}" ]; then # Dirty hack for netlify that don't ship the realpath command - realpath=python ./realpath.py + realpath="python ./realpath.py" fi # On exit, remove any symbolic link in content/french that points # to content/english find content/french -type l -print0 | while IFS= read -r -d $'\0' filename; do - - # Temporary hack - echo ">>> " ${realpath:-realpath} "$filename" " <<<" - echo ----- - ${realpath:-realpath} "$filename" - echo ----- - if ${realpath:-realpath} "$filename" | grep -E "^$PWD/" > /dev/null; then rm -f "$filename" fi