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 debb3b1 commit 635aacc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/plausible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ find "$SEARCH_DIR" -type f -name "*.html" | while read -r html_file; do

sed -i "s|$OLD_STRING|$NEW_STRING|g" "$html_file"

sed -i "/<script[^\>]*src=\"$NEW_STRING\"/i\\
$PRECONNECT_LINK
" "$html_file"
sed -i "/<script[^>]*src=\"$NEW_STRING\"/i\\
$PRECONNECT_LINK
" "$html_file"
fi
done

0 comments on commit 635aacc

Please sign in to comment.