Skip to content

Commit e0b4e3a

Browse files
Update Linux setup scripts to allow Enter key as default confirmation (Y)
Co-authored-by: waldekmastykarz <[email protected]>
1 parent 6fc5937 commit e0b4e3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/setup-beta.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ echo ""
2121

2222
if [ -t 0 ]; then
2323
# Terminal is interactive, prompt the user
24-
read -p "Continue (y/n)? " -n1 -r response
24+
read -p "Continue (Y/n)? " -r response
2525
else
2626
# Not interactive
2727
response='y'
2828
fi
2929

30-
if [[ "$response" != [yY] ]]; then
30+
if [[ "$response" = [nN] ]]; then
3131
echo -e "\nExiting"
3232
exit 1
3333
fi

scripts/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ echo ""
2020

2121
if [ -t 0 ]; then
2222
# Terminal is interactive, prompt the user
23-
read -p "Continue (y/n)? " -n1 -r response
23+
read -p "Continue (Y/n)? " -r response
2424
else
2525
# Not interactive, set a default response
2626
response='y'
2727
fi
2828

29-
if [[ "$response" != [yY] ]]; then
29+
if [[ "$response" = [nN] ]]; then
3030
echo -e "\nExiting"
3131
exit 1
3232
fi

0 commit comments

Comments
 (0)