Skip to content

Commit

Permalink
fix extract images version
Browse files Browse the repository at this point in the history
The current version is incorrectly extracted:
```
python3 wis2box-ctl.py update --restart
Current version=1, latest version=1.0.0rc1
Would you like to update ? (y/n/exit)
```

this PR will fix this:

```
python3 wis2box-ctl.py update --restart
Using latest version 1.0.0rc1, no update of images file required
```
  • Loading branch information
maaikelimper authored Jan 28, 2025
1 parent ba4aef5 commit 8407f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wis2box-ctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def update_images_yml() -> str:
# 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]
current_version = file.split('images-')[1].split('.yml')[0]

if current_version == version:
print(f'Using latest version {version}, no update of images file required')
Expand Down

0 comments on commit 8407f28

Please sign in to comment.