Skip to content

Commit

Permalink
add test that gleam command works
Browse files Browse the repository at this point in the history
  • Loading branch information
tsloughter committed Aug 31, 2024
1 parent f9344e0 commit c2cfef2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions shelltests/installs.test
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ Erlang:
Gleam:
v1.4.1
>>>=0

ls ~/.local/bin/gleam
>>>=0

~/.local/bin/gleam --version
>>>
gleam 1.4.1
>>>=0
4 changes: 2 additions & 2 deletions src/cmd/update_links.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ pub fn run(maybe_language: Option<&languages::Language>) -> Result<()> {
let beamup_exe = std::env::current_exe().unwrap();
debug!("linking {:?} to {:?}", link, beamup_exe);
let _ = std::fs::remove_file(&link);
match std::fs::hard_link(beamup_exe, &link) {
match std::fs::hard_link(&beamup_exe, &link) {
Ok(()) => {}
Err(e) => {
has_err = true;
error!("Failed to link {:?}: {}", link, e);
error!("Failed to link {:?} to {:?}: {}", link, beamup_exe, e);
}
}
}
Expand Down

0 comments on commit c2cfef2

Please sign in to comment.