Remove the build dir if already exists.

This commit is contained in:
Relintai 2020-12-23 17:09:44 +01:00
parent 1db460953a
commit 1e08c8eb24

View File

@ -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): 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!") warn_exit("Apt failed to install software!")
shell.run_command("rm -Rf build")
shell.run_command("mkdir build") shell.run_command("mkdir build")
shell.chdir("build") shell.chdir("build")
print("Building rpi-fbcp...") print("Building rpi-fbcp...")