Update Brewfile format

This commit is contained in:
pagedown 2022-02-09 21:35:22 +08:00
parent d3bc6001d8
commit 8ebd514251
No known key found for this signature in database
GPG key ID: E921CF18AC8FF6EB
3 changed files with 9 additions and 9 deletions

View file

@ -30,7 +30,7 @@ def install_deps():
print('Installing kitty dependencies...')
sys.stdout.flush()
if is_macos:
items = (x.strip() for x in open('Brewfile').readlines() if not x.startswith('#'))
items = (x.split()[1].strip('"') for x in open('Brewfile').readlines() if x.strip().startswith('brew '))
run('brew', 'install', *items)
else:
run('sudo apt-get update')