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) print(BUILD_FILENAMES)
for BUILD_FILENAME in BUILD_FILENAMES: if len(BUILD_FILENAMES) > 0:
if not BUILD_FILENAME == "": for BUILD_FILENAME in BUILD_FILENAMES:
if not "artifact" in BUILD_FILENAME: if not BUILD_FILENAME == "":
# move the binary to temp folder if not "artifact" in BUILD_FILENAME:
move( # move the binary to temp folder
os.path.join(".",BUILD_FILENAME), move(
os.path.join("..","artifact",BUILD_FILENAME) os.path.join(".",BUILD_FILENAME),
) os.path.join("..","artifact",BUILD_FILENAME)
)
# clean the git slate # clean the git slate
git_clean() git_clean()