Skip to content

Commit f92367e

Browse files
Update build_map.sh
1 parent bcb0392 commit f92367e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/build_map.sh

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ find _just_data -mindepth 1 -print | while read -r path; do
3434
if [ -f "$path" ]; then
3535
if [[ "$first_line" != "// _just hide" ||
3636
"$first_line" != "// _just doNotModify+hide" ]]; then
37-
echo " _just_buildManifest.push($relative_path);" >> deploy/_just/static/$BUILD_ID/buildManifest.js
37+
echo " _just_buildManifest.push(\"$relative_path\");" >> deploy/_just/static/$BUILD_ID/_justManifest.js
3838
fi
3939
fi
4040
done
@@ -139,9 +139,12 @@ echo "$(cat $GITHUB_ACTION_PATH/src/_justManifest_end.js)" >> deploy/_just/stati
139139

140140
# Override Pages
141141
for html_file in deploy/*.html; do
142-
sed -i.bak '/<\/body>/!d' "$html_file"
143-
sed -i.bak '/<\/html>/!d' "$html_file"
142+
sed -i.bak '/^[[:space:]]*<\/body>[[:space:]]*$/d' "$html_file"
143+
sed -i.bak '/^[[:space:]]*<\/html>[[:space:]]*$/d' "$html_file"
144+
144145
echo "<script src=\"_just/static/$BUILD_ID/buildManifest.js\"></script>" >> "$html_file"
145146
echo "<script src=\"_just/static/$BUILD_ID/_justManifest.js\"></script>" >> "$html_file"
146-
echo "</body></html>" >> "$html_file"
147+
148+
echo "</body>" >> "$html_file"
149+
echo "</html>" >> "$html_file"
147150
done

0 commit comments

Comments
 (0)