Skip to content

Commit 5eec7e4

Browse files
committed
Add line break to question
1 parent 21d5a73 commit 5eec7e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/ask

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function ask() {
2727
while true; do
2828

2929
# Ask the question (not using "read -p" as it uses stderr not stdout)
30-
echo -n "${yellow}$1 [$prompt] ${reset}"
30+
echo -ne "${yellow}$1 [$prompt] ${reset}"
3131

3232
# Read the answer (use /dev/tty in case stdin is redirected from somewhere else)
3333
read -r reply </dev/tty

script/create-practice-repos

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ generate_repos() {
7171
# if a practice repo has already been created for the user
7272
if repo_is_reachable "$org_url/$practice_repo_name-$username"; then
7373
# ask if the repository should be deleted and recreated
74-
if ask "A $practice_repo_name repo already exists for $username. Is it OK to delete and recreate?" N; then
74+
if ask "A $practice_repo_name repo already exists for $username.\nIs it OK to delete and recreate?" N; then
7575
echo "Deleting $CLASS_ORG/$practice_repo_name-$username..."
7676
# delete the existing practice repo
7777
curl -i -u "$TOKEN_OWNER:$TEACHER_PAT" \

0 commit comments

Comments
 (0)