Skip to content

Commit

Permalink
script update
Browse files Browse the repository at this point in the history
  • Loading branch information
russbiggs committed Oct 2, 2024
1 parent acae63b commit 4ea780b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/plausible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "" "/<script[^\>]*src=\"$NEW_STRING\"/i\\
sed -i "/<script[^\>]*src=\"$NEW_STRING\"/i\\
$PRECONNECT_LINK
" "$html_file"
fi
Expand Down

0 comments on commit 4ea780b

Please sign in to comment.