Do stuff if we've got filenames but only do it once

This commit is contained in:
Mike A. Trethewey
2020-02-26 03:45:48 -08:00
parent 0fb4e47568
commit cae638d7aa

View File

@@ -52,14 +52,15 @@ BUILD_FILENAMES = BUILD_FILENAME
print(BUILD_FILENAMES)
for BUILD_FILENAME in BUILD_FILENAMES:
if not BUILD_FILENAME == "":
if not "artifact" in BUILD_FILENAME:
# move the binary to temp folder
move(
os.path.join(".",BUILD_FILENAME),
os.path.join("..","artifact",BUILD_FILENAME)
)
if len(BUILD_FILENAMES) > 0:
for BUILD_FILENAME in BUILD_FILENAMES:
if not BUILD_FILENAME == "":
if not "artifact" in BUILD_FILENAME:
# move the binary to temp folder
move(
os.path.join(".",BUILD_FILENAME),
os.path.join("..","artifact",BUILD_FILENAME)
)
# clean the git slate
git_clean()