File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ elif [ "$(limactl ls -f '{{ .Status }}' "$LIMA_INSTANCE" 2>/dev/null)" != "Runni
15
15
exit 1
16
16
fi
17
17
DOCKER=$( command -v " $DOCKER " || true)
18
+ if [ -n " $DOCKER " ]; then
19
+ [ " $( readlink -f -- " $DOCKER " ) " = " $( readlink -f -- " $0 " ) " ] && DOCKER=" "
20
+ fi
18
21
if [ -n " $DOCKER " ]; then
19
22
DOCKER_HOST=$( limactl list " $LIMA_INSTANCE " --format ' unix://{{.Dir}}/sock/docker.sock' )
20
23
export DOCKER_HOST
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ elif [ "$(limactl ls -f '{{ .Status }}' "$LIMA_INSTANCE" 2>/dev/null)" != "Runni
31
31
exit 1
32
32
fi
33
33
KUBECTL=$( command -v " $KUBECTL " || true)
34
+ if [ -n " $KUBECTL " ]; then
35
+ [ " $( readlink -f -- " $KUBECTL " ) " = " $( readlink -f -- " $0 " ) " ] && KUBECTL=" "
36
+ fi
34
37
if [ -n " $KUBECTL " ]; then
35
38
KUBECONFIG=$( limactl list " $LIMA_INSTANCE " --format ' {{.Dir}}/copied-from-guest/kubeconfig.yaml' )
36
39
export KUBECONFIG
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ elif [ "$(limactl ls -f '{{ .Status }}' "$LIMA_INSTANCE" 2>/dev/null)" != "Runni
11
11
exit 1
12
12
fi
13
13
PODMAN=$( command -v " $PODMAN " || true)
14
+ if [ -n " $PODMAN " ]; then
15
+ [ " $( readlink -f -- " $PODMAN " ) " = " $( readlink -f -- " $0 " ) " ] && PODMAN=" "
16
+ fi
14
17
if [ -n " $PODMAN " ]; then
15
18
CONTAINER_HOST=$( limactl list " $LIMA_INSTANCE " --format ' unix://{{.Dir}}/sock/podman.sock' )
16
19
export CONTAINER_HOST
You can’t perform that action at this time.
0 commit comments