Skip to content

Commit

Permalink
Fix script sourcing in bashrc
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Oct 15, 2019
1 parent 9dd1675 commit 9a8931f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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 = "awscredx"
version = "0.5.0"
version = "0.5.1"
authors = ["Alexei Samokvalov <[email protected]>"]
edition = "2018"

Expand Down
2 changes: 1 addition & 1 deletion src/init/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ fn set_up_script_sources(ctx: &JobContext) -> Result<JobReport, String> {

let must_attach = match fs::read_to_string(&ctx.shell_init_script) {
Ok(content) => content.lines().find(|line| line.starts_with(&source_line)).is_none(),
Err(_) => false,
Err(_) => true,
};

let title = format!("Add 'source {}' to {}",
Expand Down

0 comments on commit 9a8931f

Please sign in to comment.