File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ function ask() {
27
27
while true ; do
28
28
29
29
# 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} "
31
31
32
32
# Read the answer (use /dev/tty in case stdin is redirected from somewhere else)
33
33
read -r reply < /dev/tty
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ generate_repos() {
71
71
# if a practice repo has already been created for the user
72
72
if repo_is_reachable " $org_url /$practice_repo_name -$username " ; then
73
73
# 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
75
75
echo " Deleting $CLASS_ORG /$practice_repo_name -$username ..."
76
76
# delete the existing practice repo
77
77
curl -i -u " $TOKEN_OWNER :$TEACHER_PAT " \
You can’t perform that action at this time.
0 commit comments