We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dcfeb47 commit 5107d47Copy full SHA for 5107d47
src/libexec/rsdk/rsdk-setup
@@ -112,8 +112,8 @@ EOF
112
# https://discord.com/channels/1036369714731036712/1036369758024650792/1479376272395210885
113
install_devcontainer_cli() {
114
local devenv_shell=
115
- if [[ -z ${DEVENV_CMDLINE:-} ]]; then
116
- echo "Not in devenv shell. Enter shell to install npm."
+ if dpkg --compare-versions "$(devenv --version | cut -d ' ' -f 2)" lt 2.0.0; then
+ echo "devenv << 2.0.0 supports nested shell, using it to install @devcontainers/cli."
117
devenv_shell="devenv shell"
118
fi
119
if ! $devenv_shell npm install @devcontainers/cli; then
0 commit comments