diff --git a/hugo b/hugo index 665a60f..49ec4d0 100755 --- a/hugo +++ b/hugo @@ -14,6 +14,11 @@ function cleanup() { # 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" + ${realpath:-realpath} "$filename" + if ${realpath:-realpath} "$filename" | grep -E "^$PWD/" > /dev/null; then rm -f "$filename" fi