summaryrefslogtreecommitdiff
path: root/templates/exam/question.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/exam/question.html')
-rw-r--r--templates/exam/question.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/exam/question.html b/templates/exam/question.html
index 62b8b3d..8b589b6 100644
--- a/templates/exam/question.html
+++ b/templates/exam/question.html
@@ -65,7 +65,7 @@ function update_time()
<input name="answer" type="radio" value="{{option}}" />{{option}} <br/>
{% endfor %}
{% else %}
-<textarea rows="20" cols="100" name="answer">{% if last_attempt %}{{last_attempt.strip}}{% else %}# Enter your answer here.{% endif %}</textarea>
+<textarea rows="20" cols="100" name="answer">{% if last_attempt %}{{last_attempt.strip}}{% else %}{% if question.type == "bash" %}#!/bin/bash{% else %}# Enter your answer here.{% endif %}{% endif %}</textarea>
{% endif %}
<br/>
{% if question.type == "mcq" %}