Skip to content

Commit

Permalink
Merge pull request #1324 from doronz88/bugfix/remove-file-subcommand
Browse files Browse the repository at this point in the history
afc: remove `file` command from interactive shell
  • Loading branch information
doronz88 authored Dec 29, 2024
2 parents 3d13553 + 28e8e7c commit 652e244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymobiledevice3/services/afc.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def _setup_shell_commands(self):
# clear all host commands except for some useful ones
XSH.env['PATH'].clear()
# adding "file" just to fix xonsh errors
for cmd in ['wc', 'grep', 'egrep', 'sed', 'awk', 'print', 'yes', 'cat', 'file']:
for cmd in ['wc', 'grep', 'egrep', 'sed', 'awk', 'print', 'yes', 'cat']:
executable = shutil.which(cmd)
if executable is not None:
self._register_rpc_command(cmd, executable)
Expand Down

0 comments on commit 652e244

Please sign in to comment.