From 0a8db77901a864e9c77d41d835979ce689c8a567 Mon Sep 17 00:00:00 2001 From: CodeChenL <43897062+CodeChenL@users.noreply.github.com> Date: Thu, 18 Apr 2024 18:20:07 +0800 Subject: [PATCH] fix: use devenv shell install mdbook-cmdrun Co-authored-by: ZHANG Yuntian --- src/libexec/rsdk/rsdk-setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libexec/rsdk/rsdk-setup b/src/libexec/rsdk/rsdk-setup index cc9ddc8..a3ad21a 100755 --- a/src/libexec/rsdk/rsdk-setup +++ b/src/libexec/rsdk/rsdk-setup @@ -107,10 +107,9 @@ nix registry add devenv github:cachix/devenv (yes || true) | nix profile install --accept-flake-config devenv#default devenv shell npm install @devcontainers/cli +devenv shell cargo install mdbook-cmdrun trap - EXIT -cargo install mdbook-cmdrun - RSDK_COMPLETION_DIR="${BASH_COMPLETION_USER_DIR:-${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion}/completions" mkdir -p "$RSDK_COMPLETION_DIR" rm -f "$RSDK_COMPLETION_DIR/rsdk"