Skip to content

Commit

Permalink
Merge pull request #1320 from doronz88/bugfix/completion-missing-rc
Browse files Browse the repository at this point in the history
completions: handle missing rc files
  • Loading branch information
doronz88 authored Dec 23, 2024
2 parents c1581ab + 9749083 commit 139f4e4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pymobiledevice3/cli/completions.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def install_completions() -> None:
if not completion.path.parent.exists():
# fish is not installed, skip
continue
if not completion.rc.exists():
continue
logger.info(f'Writing shell completions to: {completion.path}')
completion.path.write_text(pymobiledevice3())
line = f'source {completion.path}'
Expand Down

0 comments on commit 139f4e4

Please sign in to comment.