Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / make-flags.sh
diff options
context:
space:
mode:
1 files changed, 3 insertions, 2 deletions
-rwxr-xr-xgenerate-hooks/make-flags.sh5
diff --git a/generate-hooks/make-flags.sh b/generate-hooks/make-flags.sh
index 69d8952..84adfaf 100755
--- a/generate-hooks/make-flags.sh
+++ b/generate-hooks/make-flags.sh
@@ -11,7 +11,8 @@ if [ -z "$1" ]; then
exit
fi
+awkloc="$(dirname "$0")/create-flags.awk"
+
for file in $1; do
- # Replaces "&&gb" with "<img src="/img/gb.svg" class="unzoomable" alt="ENG" title="ENG">"
- sed -i 's/&#38;&#38;gb/<img src="\/img\/gb.svg" class="unzoomable" alt="ENG" title="ENG">/g' "$file"
+ awk -f "$awkloc" $file > tmp && mv -f tmp $file
done