Fix dynamic-colors script

fixes UnboundLocalError: local variable 'src' referenced before assignment
This commit is contained in:
Jakob Lechner 2023-11-22 18:05:51 +00:00
parent e4cbda4cd9
commit 63a2ce64e8
No known key found for this signature in database
GPG key ID: 996082EFB5906C10

View file

@ -84,10 +84,10 @@ let
if target.exists() and target.is_symlink:
os.remove(target)
src = {
'light': entry['light'],
'dark': entry['dark'],
}[scheme]
src = {
'light': entry['light'],
'dark': entry['dark'],
}[scheme]
os.symlink(src, target)