From 126a1024264ae664046d266826b9e6bd17ca1d03 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 12 Oct 2021 14:10:08 -0400 Subject: [PATCH] confirm before tar-gzipping orig. Fix default behaviour in dput prompt --- utils/do_debian_package.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index 691fb530d..2a4dd6989 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -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