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
|
read -p 'Are you sure you want to proceed? (y/n) ' -n 1 -r < /dev/tty
|
||||||
echo
|
echo
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
[[ ! $REPLY =~ ^[Yy]$ ]] && echo 'Release aborted.' && exit 1
|
||||||
echo 'Release aborted.'
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
read -p 'Are you *really* sure you want to proceed? (y/n) ' -n 1 -r < /dev/tty
|
read -p 'Are you *really* sure you want to proceed? (y/n) ' -n 1 -r < /dev/tty
|
||||||
echo
|
echo
|
||||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
[[ ! $REPLY =~ ^[Yy]$ ]] && echo 'Release aborted.' && exit 1
|
||||||
echo 'Release aborted.'
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for uncomitted changes
|
# Check for uncomitted changes
|
||||||
git diff --quiet HEAD >/dev/null
|
git diff --quiet HEAD >/dev/null
|
||||||
|
|
Loading…
Reference in New Issue