summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-11-03 01:08:25 +0100
committerHolger Levsen <holger@layer-acht.org>2014-11-03 01:25:54 +0100
commit99a055da9d5aaa2f1d0c632b067003d8df32ac6e (patch)
treecb46f708f891f070651d67d5635ea08149ccf610
parentb77e5746d1a18b5aa5744f5c9542f67dc0890445 (diff)
downloadjenkins.debian.net-99a055da9d5aaa2f1d0c632b067003d8df32ac6e.tar.xz
g-i-i: initially remove old screenshot
-rw-r--r--bin/g-i-installation.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/g-i-installation.sh b/bin/g-i-installation.sh
index e9e905ab..14b949f4 100644
--- a/bin/g-i-installation.sh
+++ b/bin/g-i-installation.sh
@@ -41,9 +41,11 @@ fi
#
# define workspace + results
#
-rm -rf results
+rm -rf results screenshot.png screenshot-thumb.png
mkdir -p results
-WORKSPACE=$(pwd)
+if [ -z "$WORKSPACE" ] ; then
+ WORKSPACE=$(pwd)
+fi
RESULTS=$WORKSPACE/results
mkdir -p $RESULTS/log
GOCR=$(mktemp)