From 0aaa7bb4906af755929f6124d86adc74e44225a3 Mon Sep 17 00:00:00 2001 From: Gambhiro Date: Wed, 9 Dec 2015 18:15:14 +0000 Subject: [PATCH] warn and exit if PPA folder already exists --- package-linux.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package-linux.sh b/package-linux.sh index 2324221..0c7cd5c 100755 --- a/package-linux.sh +++ b/package-linux.sh @@ -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