Procházet zdrojové kódy

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

Andreas Kling před 4 roky
rodič
revize
2f97590409
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      Meta/text-to-cpp-string.sh

+ 1 - 1
Meta/text-to-cpp-string.sh

@@ -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