Skip to content

Commit

Permalink
Meta: Make the text-to-cpp-string thingy pass shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Sep 14, 2020
1 parent 22b03dd commit 2f97590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meta/text-to-cpp-string.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# $2 input path

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
echo "$line"
done
Expand Down

0 comments on commit 2f97590

Please sign in to comment.