From ab248413ea54c0a30ae147ed873d8d8c5cd7ee3e Mon Sep 17 00:00:00 2001
From: Syping <schiedelrafael@keppe.org>
Date: Sun, 7 Jun 2020 21:50:26 +0200
Subject: [PATCH] drone cleanup previous build

---
 .drone/drone.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/.drone/drone.sh b/.drone/drone.sh
index b0d196f..2006971 100755
--- a/.drone/drone.sh
+++ b/.drone/drone.sh
@@ -1,5 +1,13 @@
 #!/bin/bash
 
+# Cleanup previous Drone build
+if [ -d "assets" ]; then
+	rm -rf assets
+fi
+if [ -d "build" ]; then
+	rm -rf build
+fi
+
 # Decrypt Telemetry Authenticator
 rm -rf tmext/TelemetryClassAuthenticator.cpp && \
 openssl aes-256-cbc -k ${TCA_PASS} -in .drone/TelemetryClassAuthenticator.cpp.enc -out tmext/TelemetryClassAuthenticator.cpp -d -pbkdf2