summaryrefslogtreecommitdiff
path: root/devfiles/scripts/compile-questions.sh
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2013-09-04 21:37:25 -0700
committerJesse Morgan <jesse@jesterpm.net>2013-09-04 21:37:25 -0700
commit2fefbf0904d9a8529ec06732af6beec53aacc336 (patch)
treecae9ecfe71fc769f3e4b5e4830d9c34283fe89ef /devfiles/scripts/compile-questions.sh
parent4626d7bb1e5513b08a012996be237b2a7d649905 (diff)
Moving the burden of escaping single quotes from the json files to the scripts
Diffstat (limited to 'devfiles/scripts/compile-questions.sh')
-rwxr-xr-xdevfiles/scripts/compile-questions.sh2
1 files changed, 1 insertions, 1 deletions
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