diff --git a/scripts/plausible.sh b/scripts/plausible.sh index f020707..2530f86 100644 --- a/scripts/plausible.sh +++ b/scripts/plausible.sh @@ -11,9 +11,9 @@ find "$SEARCH_DIR" -type f -name "*.html" | while read -r html_file; do if grep -q "$OLD_STRING" "$html_file"; then echo "Updating $html_file" - sed -i "" "s|$OLD_STRING|$NEW_STRING|g" "$html_file" + sed -i "s|$OLD_STRING|$NEW_STRING|g" "$html_file" - sed -i "" "/]*src=\"$NEW_STRING\"/i\\ + sed -i "/]*src=\"$NEW_STRING\"/i\\ $PRECONNECT_LINK " "$html_file" fi