From 1e08c8eb24dbf789e9327c97d3010841fdddb65e Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 23 Dec 2020 17:09:44 +0100 Subject: [PATCH] Remove the build dir if already exists. --- pitft.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pitft.py b/pitft.py index f276016..02b68c6 100644 --- a/pitft.py +++ b/pitft.py @@ -331,6 +331,7 @@ def install_fbcp(): if not shell.run_command("apt-get --yes --allow-downgrades --allow-remove-essential --allow-change-held-packages install cmake", True): warn_exit("Apt failed to install software!") + shell.run_command("rm -Rf build") shell.run_command("mkdir build") shell.chdir("build") print("Building rpi-fbcp...")