Skip to content

Commit 831fe7e

Browse files
authored
Update build.sh
1 parent fbb42a5 commit 831fe7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ for file in "$SRC_DIR"/*.user.js; do
106106
printf ' %s\n\n' "$loc_count_badge" >> "$doc_file"
107107
((loc_count_total += loc_count))
108108

109-
"${readme_comment:+$'## Info\n'"$(sed '1d;$d' <<< "$readme_comment")"$'\n'}" >> "$doc_file"
109+
printf '%s' "${readme_comment:+$'## Info\n'"$(sed '1d;$d' <<< "$readme_comment")"$'\n'}" >> "$doc_file"
110110

111111
screenshots="$(find "$SCREENSHOTS_DIR" -type f -iname "$id-*.*" -printf '%f\n' | sort)"
112-
"${screenshots:+$'## Screenshots\n'"$(sed -E 's|(.*)|![screenshot](screenshots/\1)|' <<< "$screenshots")"}" >> "$doc_file"
112+
printf '%s' "${screenshots:+$'## Screenshots\n'"$(sed -E 's|(.*)|![screenshot](screenshots/\1)|' <<< "$screenshots")"}" >> "$doc_file"
113113

114114
# --- 5. ADD ROW TO README TABLE ---
115115
escaped_script_name="$(sed 's#|#\\|#g' <<< "$script_name")"

0 commit comments

Comments
 (0)