From 5b6dac62764f077d39426aa127fc0b65f2858c53 Mon Sep 17 00:00:00 2001 From: Tsiry Sandratraina Date: Fri, 19 Apr 2024 18:56:08 +0000 Subject: [PATCH] [plugin] fix boot permission --- example/.fluentci/plugin/src/helpers.rs | 5 +++-- plugin/src/helpers.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/example/.fluentci/plugin/src/helpers.rs b/example/.fluentci/plugin/src/helpers.rs index 2c8c021..d5efbd2 100644 --- a/example/.fluentci/plugin/src/helpers.rs +++ b/example/.fluentci/plugin/src/helpers.rs @@ -25,8 +25,8 @@ pub fn setup_lein() -> Result { .pkgx()? .with_exec(vec!["mkdir", "-p", "$HOME/.local/bin"])? .with_exec(vec!["type lein >/dev/null 2>&1 || pkgx wget https://codeberg.org/leiningen/leiningen/raw/branch/stable/bin/lein"])? + .with_exec(vec!["type lein >/dev/null 2>&1 || chmod a+x lein"])? .with_exec(vec!["type lein >/dev/null 2>&1 || mv lein $HOME/.local/bin/lein"])? - .with_exec(vec!["type lein >/dev/null 2>&1 || chmod +x $HOME/.local/bin/lein"])? .stdout()?; Ok(stdout) } @@ -36,8 +36,8 @@ pub fn setup_boot() -> Result { .pkgx()? .with_exec(vec!["mkdir", "-p", "$HOME/.local/bin"])? .with_exec(vec!["type boot >/dev/null 2>&1 || pkgx curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh"])? + .with_exec(vec!["type boot >/dev/null 2>&1 || chmod a+x boot"])? .with_exec(vec!["type boot >/dev/null 2>&1 || mv boot $HOME/.local/bin/boot"])? - .with_exec(vec!["type boot >/dev/null 2>&1 || chmod +x $HOME/.local/bin/boot"])? .stdout()?; Ok(stdout) } @@ -73,6 +73,7 @@ pub fn setup_clojure(version: String) -> Result { .with_exec(vec!["clojure", "--version"])? .with_exec(vec!["lein", "--version"])? .with_exec(vec!["boot", "--version"])? + .with_exec(vec!["java", "-version"])? .stdout()?; Ok(stdout) } diff --git a/plugin/src/helpers.rs b/plugin/src/helpers.rs index 2c8c021..d5efbd2 100644 --- a/plugin/src/helpers.rs +++ b/plugin/src/helpers.rs @@ -25,8 +25,8 @@ pub fn setup_lein() -> Result { .pkgx()? .with_exec(vec!["mkdir", "-p", "$HOME/.local/bin"])? .with_exec(vec!["type lein >/dev/null 2>&1 || pkgx wget https://codeberg.org/leiningen/leiningen/raw/branch/stable/bin/lein"])? + .with_exec(vec!["type lein >/dev/null 2>&1 || chmod a+x lein"])? .with_exec(vec!["type lein >/dev/null 2>&1 || mv lein $HOME/.local/bin/lein"])? - .with_exec(vec!["type lein >/dev/null 2>&1 || chmod +x $HOME/.local/bin/lein"])? .stdout()?; Ok(stdout) } @@ -36,8 +36,8 @@ pub fn setup_boot() -> Result { .pkgx()? .with_exec(vec!["mkdir", "-p", "$HOME/.local/bin"])? .with_exec(vec!["type boot >/dev/null 2>&1 || pkgx curl -fsSLo boot https://github.com/boot-clj/boot-bin/releases/download/latest/boot.sh"])? + .with_exec(vec!["type boot >/dev/null 2>&1 || chmod a+x boot"])? .with_exec(vec!["type boot >/dev/null 2>&1 || mv boot $HOME/.local/bin/boot"])? - .with_exec(vec!["type boot >/dev/null 2>&1 || chmod +x $HOME/.local/bin/boot"])? .stdout()?; Ok(stdout) } @@ -73,6 +73,7 @@ pub fn setup_clojure(version: String) -> Result { .with_exec(vec!["clojure", "--version"])? .with_exec(vec!["lein", "--version"])? .with_exec(vec!["boot", "--version"])? + .with_exec(vec!["java", "-version"])? .stdout()?; Ok(stdout) }