Add clean

This commit is contained in:
Luke Murphy 2020-03-11 17:51:13 +01:00
parent 1270fffba9
commit 1e942fed10
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

10
clean Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env python3
import os
import os.path
import subprocess
paths = [p for p in os.listdir(".") if os.path.isdir(p) and "Makefile" in os.listdir(p)]
for path in paths:
subprocess.run("rm -rf /var/www/manymanymany-varia-websites/{}".format(path), shell=True)