Skip to content

Commit

Permalink
fix kamal installation
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 17, 2024
1 parent abcd658 commit 8ff0453
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ pub fn setup() -> Result<(), Error> {
dag()
.pipeline("setup kamal")?
.flox()?
.with_exec(vec!["flox", "install", "ruby"])?
.with_exec(vec!["gem", "install", "kamal"])?
.with_exec(vec!["type ruby /dev/null 2> /dev/null || flox install ruby"])?
.with_exec(vec!["type kamal /dev/null 2> /dev/null || gem install kamal"])?
.with_exec(vec!["[ -d $HOME/.local/bin ] || mkdir -p $HOME/.local/bin"])?
.with_exec(vec![
"ln",
"-s",
"`gem environment gemhome`/bin/kamal",
"$HOME/.local/bin/kamal",
"[ -f $HOME/.local/bin/kamal ] || ln -s `gem environment gemhome`/bin/kamal $HOME/.local/bin/kamal",
])?
.stdout()?;
Ok(())
Expand Down

0 comments on commit 8ff0453

Please sign in to comment.