Skip to content

Commit

Permalink
fix: always install ruby with flox
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Jul 17, 2024
1 parent b89855d commit 250b444
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ pub fn setup() -> Result<(), Error> {
dag()
.pipeline("setup kamal")?
.flox()?
.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 --user-install kamal"])?
.with_exec(vec!["flox install ruby"])?
.with_exec(vec!["gem install kamal"])?
.with_exec(vec!["[ -d $HOME/.local/bin ] || mkdir -p $HOME/.local/bin"])?
.with_exec(vec![
"[ -f $HOME/.local/bin/kamal ] || ln -s `gem environment user_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 250b444

Please sign in to comment.