mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Meta: Make the text-to-cpp-string thingy pass shellcheck
This commit is contained in:
parent
22b03dd11b
commit
2f97590409
Notes:
sideshowbarker
2024-07-19 02:25:15 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2f975904099
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
# $2 input path
|
# $2 input path
|
||||||
|
|
||||||
echo "extern const char $1[];"
|
echo "extern const char $1[];"
|
||||||
echo -n "const char $1[] = R\"("
|
printf "const char %s[] = R\"(" "$1"
|
||||||
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
grep -v '^ *#' < "$2" | while IFS= read -r line; do
|
||||||
echo "$line"
|
echo "$line"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue