File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
.pscale/cli-helper-scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ function pscale {
17
17
tty=" "
18
18
fi
19
19
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
21
21
if [ -n " $NO_DOCKER " ]; then
22
- command=" pscale $@ "
22
+ command=" ` which pscale` $@ "
23
23
else
24
24
# For debugging, set PSCALE_VERSION to a version of your choice. It defaults to "latest".
25
25
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" } $@ "
You can’t perform that action at this time.
0 commit comments