summaryrefslogtreecommitdiff
path: root/packages/demobank-ui/remove-link-stylesheet.sh
blob: d3376b8e60b3d59a792e2490e2c46a0fbf7ace16 (plain)
1
2
3
4
5
6
7
8
# This script has been placed in the public domain.

FILE=$(ls build/bundle.*.css)
BUNDLE=${FILE#build}
grep -q '<link href="'$BUNDLE'" rel="stylesheet">' build/index.html || { echo bundle $BUNDLE not found in index.html; exit 1; }
echo -n Removing link from index.html ...
sed 's_<link href="'$BUNDLE'" rel="stylesheet">__' -i build/index.html
echo done