From 2f975904099b89fc77966b9f68f56711c1cc91e5 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 14 Sep 2020 16:31:19 +0200 Subject: [PATCH] Meta: Make the text-to-cpp-string thingy pass shellcheck --- Meta/text-to-cpp-string.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/text-to-cpp-string.sh b/Meta/text-to-cpp-string.sh index 4330b0dba79..dea411ae6d4 100755 --- a/Meta/text-to-cpp-string.sh +++ b/Meta/text-to-cpp-string.sh @@ -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