release.sh: simplify script
Signed-off-by: Filipe Laíns <lains@archlinux.org>
This commit is contained in:
parent
442a7d18a5
commit
4056f5b9d3
10
release.sh
10
release.sh
|
@ -79,17 +79,11 @@ echo -e '\nPlease read RELEASE.md before continuing.\n'
|
|||
|
||||
read -p 'Are you sure you want to proceed? (y/n) ' -n 1 -r < /dev/tty
|
||||
echo
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo 'Release aborted.'
|
||||
exit 1
|
||||
fi
|
||||
[[ ! $REPLY =~ ^[Yy]$ ]] && echo 'Release aborted.' && exit 1
|
||||
|
||||
read -p 'Are you *really* sure you want to proceed? (y/n) ' -n 1 -r < /dev/tty
|
||||
echo
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
echo 'Release aborted.'
|
||||
exit 1
|
||||
fi
|
||||
[[ ! $REPLY =~ ^[Yy]$ ]] && echo 'Release aborted.' && exit 1
|
||||
|
||||
# Check for uncomitted changes
|
||||
git diff --quiet HEAD >/dev/null
|
||||
|
|
Loading…
Reference in New Issue