Change the order so that alias of trail works properly. (#92)

Add missing `-p` to `mkdir`. Otherwise a pre-existing `traildepot` will lead to non-zero exit code.

---------

Co-authored-by: Sebastian Jeltsch <ignatz@users.noreply.github.com>
This commit is contained in:
Junglei Kim
2025-07-14 20:03:08 +09:00
committed by GitHub
parent 321006fbe7
commit 96873f286c
2 changed files with 2 additions and 2 deletions

View File

@@ -104,7 +104,7 @@ Alternatively, run TrailBase using the Docker image:
```sh ```sh
alias trail=' alias trail='
mkdir traildepot && \ mkdir -p traildepot && \
docker run \ docker run \
--network host \ --network host \
--mount type=bind,source="$PWD"/traildepot,target=/app/traildepot \ --mount type=bind,source="$PWD"/traildepot,target=/app/traildepot \

View File

@@ -6,7 +6,7 @@ export const installDocker= `
# Docker is used here merely as an easy, portable way to install TrailBase. # Docker is used here merely as an easy, portable way to install TrailBase.
# To make this persistent, you'll have to add the alias to your shell's rc. # To make this persistent, you'll have to add the alias to your shell's rc.
alias trail=' alias trail='
mkdir traildepot && \\ mkdir -p traildepot && \\
docker run \\ docker run \\
--network host \\ --network host \\
--mount type=bind,source="$PWD"/traildepot,target=/app/traildepot \\ --mount type=bind,source="$PWD"/traildepot,target=/app/traildepot \\