Skip to content

Commit

Permalink
remove VERSION.txt from wis2box source code
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jan 27, 2025
1 parent ba4aef5 commit 564d0df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion VERSION.txt

This file was deleted.

5 changes: 5 additions & 0 deletions wis2box-ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ def get_resolved_version() -> str:
:return: The latest release tag or an error message if not found.
"""

# check if we running in a local build environment
if os.path.exists('.git') and os.path.isdir('wis2box-management'):
print('wis2box-management directory exists, assuming local build')
return 'LOCAL_BUILD'
# otherwise we are in a release environment and VERSION.txt should exist
if not os.path.exists('VERSION.txt'):
print('VERSION.txt file does not exist')
exit(1)
Expand Down

0 comments on commit 564d0df

Please sign in to comment.