diff --git a/tools/lib/provision_inner.py b/tools/lib/provision_inner.py index a4aa1d417f..09f513e25a 100755 --- a/tools/lib/provision_inner.py +++ b/tools/lib/provision_inner.py @@ -98,7 +98,7 @@ def setup_shell_profile(shell_profile: str) -> None: def write_command(command: str) -> None: if os.path.exists(shell_profile_path): with open(shell_profile_path) as shell_profile_file: - lines = [line.strip() for line in shell_profile_file.readlines()] + lines = [line.strip() for line in shell_profile_file] if command not in lines: with open(shell_profile_path, "a+") as shell_profile_file: shell_profile_file.writelines(command + "\n")