Skip to content
This repository was archived by the owner on Feb 11, 2022. It is now read-only.

Commit 99b66b9

Browse files
committed
Improves confirmation
1 parent 686ff72 commit 99b66b9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

team-props/release.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@ fi
2828

2929

3030
echo "You are about to release version $1 of $PROJECT_NAME to $2"
31-
read -p "Are you sure you want to continue? (y/n) " -n 1 -r
32-
echo
33-
if [[ $REPLY =~ ^[Nn]$ ]]; then
31+
read -p "Are you sure you want to continue? (y/n) " response
32+
33+
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]; then
34+
echo "Starting release"
35+
else
3436
echo "Cancelled"
3537
exit 1
3638
fi

0 commit comments

Comments
 (0)