소스 검색

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