From f8ebebb55801f1275aaf6690bc018ca09e7d6902 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 26 Jul 2014 21:14:05 -0400 Subject: oops, mangled indent --- FunnyQuestion.conf.php.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/FunnyQuestion.conf.php.sh b/FunnyQuestion.conf.php.sh index 66549381..d280e3de 100644 --- a/FunnyQuestion.conf.php.sh +++ b/FunnyQuestion.conf.php.sh @@ -7,17 +7,17 @@ declare -A prompts prompts[en]='What is the output of the command %s?' { - echo ' array(\"${prompts[$lang]}\" => \"%s\")" "$cmd" "$answer" - nl=',\n' - done + nl='\n' + for lang in "${!prompts[@]}"; do + printf "${nl}\t\"${lang}\" => array(\"${prompts[$lang]}\" => \"%s\")" "$cmd" "$answer" + nl=',\n' + done - echo - echo ');' + echo + echo ');' } > /srv/http/wiki/FunnyQuestion.conf.php touch /srv/http/wiki/extensions/FunnyQuestion/FunnyQuestion.i18n.php -- cgit v1.2.2