Skip to content

Commit d390bff

Browse files
authored
Merge pull request #601 from AI-Hypercomputer/fix-jq-install
fix: only install JQ when not installed
2 parents 6c0fad0 + 87ff0aa commit d390bff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xpk/commands/cluster.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,9 @@ def cluster_create_ray_cluster(args) -> None:
710710

711711
def install_jq(args):
712712
"""Installs 'jq' utility."""
713+
if shutil.which('jq'):
714+
xpk_print("Task: 'Install jq' skipped, jq already installed.")
715+
return
713716
command_jq_install = 'sudo apt install jq -y'
714717
xpk_print("Task: 'Install jq' in progress.")
715718
return_code = run_command_with_updates(command_jq_install, 'Install jq', args)

0 commit comments

Comments
 (0)