Skip to content

Commit

Permalink
"which" execution params fix
Browse files Browse the repository at this point in the history
  • Loading branch information
egor-voynov-aiven committed Feb 13, 2025
1 parent 904e560 commit 3b50204
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myhoard/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def file_name_for_basebackup_split(base_file_name: str, split_nr: int) -> str:


def find_executables(command: str) -> list[Path]:
result = subprocess.run(["which", "--all", command], capture_output=True, text=True, check=False)
result = subprocess.run(["which", "-a", command], capture_output=True, text=True, check=False)
if result.returncode != 0:
return []
return [Path(p) for p in result.stdout.strip().split("\n")]
Expand Down

0 comments on commit 3b50204

Please sign in to comment.