Skip to content

Commit 5f71945

Browse files
Fix script logic to only continue on y, Y, or Enter - reject all other input
Co-authored-by: waldekmastykarz <[email protected]>
1 parent e0b4e3a commit 5f71945

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/setup-beta.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ else
2727
response='y'
2828
fi
2929

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

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ else
2626
response='y'
2727
fi
2828

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

0 commit comments

Comments
 (0)