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

FILE=$(ls single/bundle.*.css)
BUNDLE=${FILE#single}
grep -q '<link href="'$BUNDLE'" rel="stylesheet">' single/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 single/index.html
echo done