forked from deephaven/deephaven-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Confirm the user wants to proceed when version bumping
- Prompt the user with the previous version and the new version when bumping, then ask the user to confirm - Avoid situations where it bumps to a version we're not expecting
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# This script just prompts the user to confirm they want to continue | ||
|
||
read -p "Continue? (y/n)" -n 1 -r | ||
echo # (optional) move to a new line | ||
if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
then | ||
echo "Aborted." | ||
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1 # handle exits from shell or function but don't exit interactive shell | ||
fi | ||
echo "Continuing..." |