Skip to content

Commit

Permalink
Exit with status 0 from the cp.py copy file script on success (flutte…
Browse files Browse the repository at this point in the history
…r#678)

This utility script to copy a file was always exiting with status 1.
  • Loading branch information
whesse committed Jan 31, 2023
1 parent 2e0671b commit c02da50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/cp.py
Expand Up @@ -17,7 +17,8 @@

def Main(src, dst):
# Use copy instead of copyfile to ensure the executable bit is copied.
return shutil.copy(src, os.path.normpath(dst))
shutil.copy(src, os.path.normpath(dst))
return 0


if __name__ == '__main__':
Expand Down

0 comments on commit c02da50

Please sign in to comment.