Skip to content

Commit b09593d

Browse files
authored
Merge pull request #15 from fooforge/fix-recursion-issue
2 parents e7a3dca + a5b8c22 commit b09593d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.pscale/cli-helper-scripts/use-pscale-docker-image.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ function pscale {
1717
tty=""
1818
fi
1919

20-
# if NO_DOCKER is set, we will use the natively installed commands
20+
# if NO_DOCKER is set, we will use the locally installed version of pscale
2121
if [ -n "$NO_DOCKER" ]; then
22-
command="pscale $@"
22+
command="`which pscale` $@"
2323
else
2424
# For debugging, set PSCALE_VERSION to a version of your choice. It defaults to "latest".
2525
command="docker run -e PLANETSCALE_SERVICE_TOKEN=${PLANETSCALE_SERVICE_TOKEN:-""} -e PLANETSCALE_SERVICE_TOKEN_ID=$PLANETSCALE_SERVICE_TOKEN_ID -e PLANETSCALE_SERVICE_TOKEN_NAME=$PLANETSCALE_SERVICE_TOKEN_NAME -e HOME=/tmp -v $HOME/.config/planetscale:/tmp/.config/planetscale -e PSCALE_ALLOW_NONINTERACTIVE_SHELL=true --user $(id -u):$(id -g) --rm -i $tty planetscale/pscale:${PSCALE_VERSION:-"latest"} $@"

0 commit comments

Comments
 (0)