Fix make -r

This commit is contained in:
2024-07-31 14:12:33 -07:00
parent e3e08b7bf8
commit ce41d45c9f

3
make
View File

@ -72,8 +72,9 @@ if len(sys.argv) != 1:
if sys.argv[1] == "-r": if sys.argv[1] == "-r":
sys.argv.pop(1) sys.argv.pop(1)
print("Removing output directory...") print("Removing output directory...")
if os.path.exists("output"):
shutil.rmtree("output") # Scary shutil.rmtree("output") # Scary
print("Output directory removed") if len(sys.argv) == 1:
sys.exit() sys.exit()
if sys.argv[1] == "all": if sys.argv[1] == "all":