Skip to content

Commit

Permalink
add ask
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Jun 16, 2024
1 parent a06d1bd commit 4c628f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,14 @@ function error() {
exit 1
}

function ask() {
read -p "$(echo -e "$yellow>$reset $1 $faint([n]/y)$reset: ")" -r
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "y"
return
fi

echo "n"
}

release $1

0 comments on commit 4c628f3

Please sign in to comment.