From 2fefbf0904d9a8529ec06732af6beec53aacc336 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Wed, 4 Sep 2013 21:37:25 -0700 Subject: Moving the burden of escaping single quotes from the json files to the scripts --- devfiles/scripts/compile-questions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'devfiles/scripts/compile-questions.sh') diff --git a/devfiles/scripts/compile-questions.sh b/devfiles/scripts/compile-questions.sh index 7f108b8..7bab449 100755 --- a/devfiles/scripts/compile-questions.sh +++ b/devfiles/scripts/compile-questions.sh @@ -9,7 +9,7 @@ for i in $DEVFILES/questions/*.json; do FIRST=$id fi echo "set strings['/questions/${id}']['value'] = '" - cat $i + cat $i|sed "s/'/\\\'/g" echo "';" COUNT=$((COUNT + 1)) done -- cgit v1.2.3