[WS][build.py][clean] Only delete file if it exists

git-svn-id: svn://kolibrios.org@9380 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Magomed Kostoev (mkostoevr) 2021-12-04 09:38:16 +00:00
parent 93196a1995
commit 577dc1255d

View File

@ -21,7 +21,8 @@ def build():
def clean():
output_file_list = parse_tupfile_outputs("Tupfile.lua")
for output_file in output_file_list:
os.remove(output_file)
if os.path.exists(output_file):
os.remove(output_file)
def main(argv):
if len(argv) == 2 and argv[1] == "clean":