warn and exit if PPA folder already exists

This commit is contained in:
Gambhiro 2015-12-09 18:15:14 +00:00
parent c2d227b403
commit 0aaa7bb490

View File

@ -21,6 +21,11 @@ fi
if [ ! -d "$PPA_DIR" ]; then
mkdir -p "$PPA_DIR"
else
echo -n "PPA work folder already exists: $PPA_DIR
Move this folder aside or remove it.
"
exit 2
fi
# tar 1.28 required for --exclude-vcs-ignores