Skip to content

Commit 1213e8b

Browse files
committed
shellscripts: use sh again, because there is no bash
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent e8cc182 commit 1213e8b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

webpage/scripts/run-build.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env bash
1+
#!/usr/bin/env sh
22

33
set -e
44

@@ -14,10 +14,7 @@ cp ../CHANGELOG.md src/changelog.md || true
1414
NODE_OPTIONS=--openssl-legacy-provider node --max_old_space_size=8192 ./node_modules/vuepress/cli.js build src
1515

1616
# Set more RTL styles
17-
while IFS= read -r -d '' file; do
18-
sed -E 's/^<html /&dir="rtl" /' -i "$file"
19-
done < <(find src/.vuepress/dist/fa -name '*.html' -print0)
20-
21-
while IFS= read -r -d '' file; do
22-
sed -E 's/^<html /&dir="rtl" /' -i "$file"
23-
done < <(find src/.vuepress/dist/ar -name '*.html' -print0)
17+
# shellcheck disable=SC2046
18+
sed -E 's/^<html /&dir="rtl" /' -i $(find src/.vuepress/dist/fa -name '*.html')
19+
# shellcheck disable=SC2046
20+
sed -E 's/^<html /&dir="rtl" /' -i $(find src/.vuepress/dist/ar -name '*.html')

0 commit comments

Comments
 (0)