Create the .tar.gz by default if it doesn't exist. Only warn if it already exists.
This commit is contained in:
parent
a9ef5bf731
commit
7bc46ba7a8
|
@ -222,8 +222,8 @@ 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]"
|
read -p "$DIRECTORY.orig.tar.gz exists, overwrite it? [Y/n]"
|
||||||
if [[ "$REPLY" == "" || "$REPLY" == [yY] ]]; then
|
if [[ "$REPLY" == "" || "$REPLY" == [yY] ]]; then
|
||||||
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
tar zcf $DIRECTORY.orig.tar.gz $DIRECTORY.orig
|
||||||
fi;
|
fi;
|
||||||
|
|
Loading…
Reference in New Issue