Compare commits

..

2 Commits

Author SHA1 Message Date
github-actions[bot]
3640c9aa6d ci: update version string in docs 2024-06-10 16:14:16 +00:00
dante
00d6873f9a fix: should update using bash when possible (#813) 2024-06-10 12:13:59 -04:00
3 changed files with 16 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
ezkl==0.0.0
ezkl==11.3.3
sphinx
sphinx-rtd-theme
sphinxcontrib-napoleon

View File

@@ -1,7 +1,7 @@
import ezkl
project = 'ezkl'
release = '0.0.0'
release = '11.3.3'
version = release

View File

@@ -533,7 +533,20 @@ fn update_ezkl_binary(version: &Option<String>) -> Result<String, EZKLError> {
// run the install script with the version
let install_script = std::str::from_utf8(INSTALL_BYTES)?;
// now run as sh script with the version as an argument
let mut command = std::process::Command::new("sh");
// check if bash is installed
let command = if std::process::Command::new("bash")
.arg("--version")
.status()
.is_err()
{
log::warn!("bash is not installed on this system, trying to run the install script with sh (may fail)");
"sh"
} else {
"bash"
};
let mut command = std::process::Command::new(command);
let mut command = command.arg("-c").arg(install_script);
if let Some(version) = version {