Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
slowriot committed Dec 8, 2024
2 parents 7f98dbf + db24220 commit f45bdd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile_resource_to_raw_string.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ echo -n "inline constexpr char const *${resourcename}{R\"${shorthash}(" >> "$out
# content
if printf '%s\0' "${strip_comment_suffixes[@]}" | grep -Fxzq -- "$suffix"; then
# strip comments and whitespace-only lines
sed "s/\/\/.*//;/^[ ]*$/d" "$infile" >> "$outfile"
sed "s/ *\/\/.*//;/^[ ]*$/d" "$infile" >> "$outfile"
else
cat "$infile" >> "$outfile"
fi
Expand Down

0 comments on commit f45bdd7

Please sign in to comment.