Skip to content

Commit

Permalink
Use interactive shell (ugh!) because sdkman sits in .zshrc/.bashrc by…
Browse files Browse the repository at this point in the history
… default which is only read when shells are interactive.
  • Loading branch information
GJKrupa committed Oct 5, 2023
1 parent 9be2f1f commit bb5b4ed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "manplan"
version = "0.1.2"
version = "0.1.3"
authors = ["Gerard Krupa"]
edition = "2021"
description = "Tool for keeping sdkman candidates up-to-date"
Expand Down
4 changes: 4 additions & 0 deletions src/sdkman/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl ToolManager for SdkMan {
let shell = env::var("SHELL").unwrap();
let output = std::process::Command::new(shell)
.arg("-l")
.arg("-i")
.arg("-c")
.arg(format!("sdk list {}", candidate))
.output()
Expand Down Expand Up @@ -71,6 +72,7 @@ impl ToolManager for SdkMan {
if !self.dry_run {
let output = std::process::Command::new(shell)
.arg("-l")
.arg("-i")
.arg("-c")
.arg(cmd)
.output()
Expand Down Expand Up @@ -99,6 +101,7 @@ impl ToolManager for SdkMan {
} else if !self.dry_run {
let output = std::process::Command::new(shell)
.arg("-l")
.arg("-i")
.arg("-c")
.arg(cmd)
.output()
Expand All @@ -125,6 +128,7 @@ impl ToolManager for SdkMan {
if !self.dry_run {
let output = std::process::Command::new(shell)
.arg("-l")
.arg("-i")
.arg("-c")
.arg(cmd)
.output()
Expand Down

0 comments on commit bb5b4ed

Please sign in to comment.