chore: fix old file removal behavior

This commit is contained in:
Rudra Saraswat 2023-06-30 09:17:36 +10:00
parent e3e48931cc
commit f0306bd49d

View file

@ -112,7 +112,7 @@ def update_system():
if os.path.isdir('/mnt/iso-update'):
for f in os.listdir('/mnt/iso-update'):
if f != 'update.iso':
exec('rm', '-f', f)
exec('rm', '-f', f'/mnt/iso-update/{f}')
# Check if update is available
if os.path.isfile('/etc/blend_release'):