confirm before tar-gzipping orig. Fix default behaviour in dput prompt

This commit is contained in:
Isaac Connor 2021-10-12 14:10:08 -04:00
parent 614750963b
commit 126a102426
1 changed files with 6 additions and 2 deletions

View File

@ -230,9 +230,13 @@ rm .gitignore
cd ../
if [ ! -e "$DIRECTORY.orig.tar.gz" ]; then
if [ !-e "$DIRECTORY.orig.tar.gz" ]; then
read -p "$DIRECTORY.orig.tar.gz does not exist, create it? [Y/n]"
if [[ $REPLY == [yY] ]]; then
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
fi;
fi;
IFS=',' ;for DISTRO in `echo "$DISTROS"`; do
echo "Generating package for $DISTRO";
@ -358,7 +362,7 @@ EOF
dput="Y";
if [ "$INTERACTIVE" != "no" ]; then
read -p "Ready to dput $SC to $PPA ? Y/n...";
if [[ "$REPLY" == [yY] ]]; then
if [[ "$REPLY" == "" || "$REPLY" == [yY] ]]; then
dput $PPA $SC
fi;
else