Skip to content

Commit

Permalink
add fix split in this PR
Browse files Browse the repository at this point in the history
  • Loading branch information
maaikelimper committed Jan 30, 2025
1 parent db72cf8 commit 8149904
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wis2box-ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ def update_images_yml() -> str:

current_version = 'Undefined'
# find currently used version of docker-compose.images-*.yml
for file in os.listdir('.'):
if file.startswith('docker-compose.images-') and file.endswith('.yml'):
current_version = file.split('-')[2].split('.')[0]
for file_ in os.listdir('.'):
if file_.startswith('docker-compose.images-') and file.endswith('.yml'):
current_version = file_.split('images-')[1].split('.yml')[0]

if current_version == version:
print(f'Current version={version}, no update of images file required')
Expand Down Expand Up @@ -343,9 +343,9 @@ def update_images_yml() -> str:

# rename any other docker-compose.images-*.yml file to .bak
image_files = glob.glob('docker-compose.images-*.yml')
for file in image_files:
if file != f'docker-compose.images-{version}.yml':
os.rename(file, file + '.bak')
for file_ in image_files:
if file_ != f'docker-compose.images-{version}.yml':
os.rename(file_, file_ + '.bak')

def make(args) -> None:
"""
Expand Down

0 comments on commit 8149904

Please sign in to comment.