diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-09-04 21:37:25 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-09-04 21:37:25 -0700 |
commit | 283c4928081f82e3f6ef7a0f80aecf0bacb89dbe (patch) | |
tree | c9c9def8034632e769d24537491445a526e11b2a /devfiles/scripts | |
parent | fd0682ae4d5ea3e4f96d461d6be45dabcc86fd70 (diff) |
Moving the burden of escaping single quotes from the json files to the scripts
Diffstat (limited to 'devfiles/scripts')
-rwxr-xr-x | devfiles/scripts/compile-questions.sh | 2 | ||||
-rwxr-xr-x | devfiles/scripts/compile-videos.sh | 2 |
2 files changed, 2 insertions, 2 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 diff --git a/devfiles/scripts/compile-videos.sh b/devfiles/scripts/compile-videos.sh index 4ed8ad0..27ac838 100755 --- a/devfiles/scripts/compile-videos.sh +++ b/devfiles/scripts/compile-videos.sh @@ -5,7 +5,7 @@ for i in $DEVFILES/videos/*; do for j in $i/*.json; do id=`basename $j .json` echo "set strings['/training/${level}']['${id}'] = '" - cat $j + cat $j|sed "s/'/\\\'/g" echo "';" done done |