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