confirm before tar-gzipping orig. Fix default behaviour in dput prompt
This commit is contained in:
parent
614750963b
commit
126a102426
|
@ -230,9 +230,13 @@ rm .gitignore
|
||||||
cd ../
|
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
|
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
||||||
fi;
|
fi;
|
||||||
|
fi;
|
||||||
|
|
||||||
IFS=',' ;for DISTRO in `echo "$DISTROS"`; do
|
IFS=',' ;for DISTRO in `echo "$DISTROS"`; do
|
||||||
echo "Generating package for $DISTRO";
|
echo "Generating package for $DISTRO";
|
||||||
|
@ -358,7 +362,7 @@ EOF
|
||||||
dput="Y";
|
dput="Y";
|
||||||
if [ "$INTERACTIVE" != "no" ]; then
|
if [ "$INTERACTIVE" != "no" ]; then
|
||||||
read -p "Ready to dput $SC to $PPA ? Y/n...";
|
read -p "Ready to dput $SC to $PPA ? Y/n...";
|
||||||
if [[ "$REPLY" == [yY] ]]; then
|
if [[ "$REPLY" == "" || "$REPLY" == [yY] ]]; then
|
||||||
dput $PPA $SC
|
dput $PPA $SC
|
||||||
fi;
|
fi;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue