浏览代码

Meta: Make the text-to-cpp-string thingy pass shellcheck

Andreas Kling 4 年之前
父节点
当前提交
2f97590409
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Meta/text-to-cpp-string.sh

+ 1 - 1
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