Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / make-flags.sh
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rwxr-xr-xgenerate-hooks/make-flags.sh4
diff --git a/generate-hooks/make-flags.sh b/generate-hooks/make-flags.sh
index 786671d..69d8952 100755
--- a/generate-hooks/make-flags.sh
+++ b/generate-hooks/make-flags.sh
@@ -7,11 +7,11 @@
# Great Britain - &&gb
if [ -z "$1" ]; then
- echo First parameter must be a path
+ echo First parameter must be string with file paths
exit
fi
-for file in $(find "$1" -type f -name "*.html"); do
+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"
done