From 7bc46ba7a8a829c2ad6b6661fc5323d1154b897f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 9 Dec 2021 15:19:49 -0500 Subject: [PATCH] Create the .tar.gz by default if it doesn't exist. Only warn if it already exists. --- utils/do_debian_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/do_debian_package.sh b/utils/do_debian_package.sh index 91ecf520b..9806c3306 100755 --- a/utils/do_debian_package.sh +++ b/utils/do_debian_package.sh @@ -222,8 +222,8 @@ rm .gitignore cd ../ -if [ ! -e "$DIRECTORY.orig.tar.gz" ]; then - read -p "$DIRECTORY.orig.tar.gz does not exist, create it? [Y/n]" +if [ -e "$DIRECTORY.orig.tar.gz" ]; then + read -p "$DIRECTORY.orig.tar.gz exists, overwrite it? [Y/n]" if [[ "$REPLY" == "" || "$REPLY" == [yY] ]]; then tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig fi;