File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,25 +4,27 @@ set -eu
44
55bin_dir=" $( CDPATH= cd -- " $( dirname -- " $0 " ) " && pwd) "
66agentctl=" $bin_dir /turtle-agentctl"
7- if [ ! -x " $agentctl " ]; then
8- agentctl=" turtle-agentctl"
7+ if [ -f " $agentctl " ]; then
8+ agentctl_prefix=" python3 $agentctl "
9+ else
10+ agentctl_prefix=" turtle-agentctl"
911fi
1012
1113cmd=" ${1:- surfaces} "
1214case " $cmd " in
1315 surfaces)
1416 shift || true
15- exec " $agentctl " --stdio cloudfog-surfaces " $@ "
17+ exec $agentctl_prefix --stdio cloudfog-surfaces " $@ "
1618 ;;
1719 inspect)
1820 shift || true
19- exec " $agentctl " --stdio cloudfog-inspect " $@ "
21+ exec $agentctl_prefix --stdio cloudfog-inspect " $@ "
2022 ;;
2123 request-execution)
2224 shift || true
2325 surface=" ${1:- cloudfog/ local-devshell} "
2426 shift || true
25- exec " $agentctl " --stdio request-surface-execution " $surface " " $@ "
27+ exec $agentctl_prefix --stdio request-surface-execution " $surface " " $@ "
2628 ;;
2729 * )
2830 echo " usage: turtle-cloudfog [surfaces|inspect <surface>|request-execution <surface> -- <command>]" >&2
You can’t perform that action at this time.
0 commit comments