diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2013-09-03 07:02:59 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2013-09-03 07:03:26 -0700 |
commit | eb881fdc9b62d1b9d1f5c61f1f4077065db7e933 (patch) | |
tree | 85dda0e94824177ed5aed88d511b95071fe85d87 /devfiles/scripts/compile-questions.sh | |
parent | 84d008be8a35d3a19607de669042ddb5c6540f0c (diff) |
New account page improvements and renumbered questions.
Diffstat (limited to 'devfiles/scripts/compile-questions.sh')
-rwxr-xr-x | devfiles/scripts/compile-questions.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/devfiles/scripts/compile-questions.sh b/devfiles/scripts/compile-questions.sh index 16be5b1..7f108b8 100755 --- a/devfiles/scripts/compile-questions.sh +++ b/devfiles/scripts/compile-questions.sh @@ -1,9 +1,26 @@ # Dump Cassandra commands to setup questions + +FIRST="" +COUNT=0 + for i in $DEVFILES/questions/*.json; do id=`basename $i .json` + if [ -z "$FIRST" ]; then + FIRST=$id + fi echo "set strings['/questions/${id}']['value'] = '" cat $i echo "';" + COUNT=$((COUNT + 1)) done +# Create Summary +cat << EOF +set strings['/questions']['value'] = ' +{ + "first": "$FIRST", + "count": $COUNT +} +'; +EOF |