Bug fix in exec command with fail on error flag

This commit is contained in:
sagie gur ari 2020-08-14 16:16:50 +00:00
parent 97605e06cb
commit b670cec680
4 changed files with 8 additions and 8 deletions

View file

@ -1,5 +1,9 @@
## CHANGELOG
### v0.6.6 (2020-08-14)
* Bug fix in exec command with fail on error flag.
### v0.6.5 (2020-07-31)
* Bug fix in substring when using negative end index only.

View file

@ -1,6 +1,6 @@
[package]
name = "duckscript_cli"
version = "0.6.5"
version = "0.6.6"
authors = ["Sagie Gur-Ari <sagiegurari@gmail.com>"]
description = "The duckscript command line executable."
license = "Apache-2.0"
@ -28,7 +28,7 @@ path = "src/main.rs"
[dependencies]
duckscript = { version = "^0.5.0", path = "../duckscript" }
duckscriptsdk = { version = "^0.6.5", path = "../duckscript_sdk" }
duckscriptsdk = { version = "^0.6.6", path = "../duckscript_sdk" }
[badges.codecov]
branch = "master"

View file

@ -1,6 +1,6 @@
[package]
name = "duckscriptsdk"
version = "0.6.5"
version = "0.6.6"
authors = ["Sagie Gur-Ari <sagiegurari@gmail.com>"]
description = "The duckscript SDK."
license = "Apache-2.0"

View file

@ -48,11 +48,7 @@ impl Command for CommandImpl {
let print_output = !allow_input;
let (start_index, fail_on_error) =
if !arguments.is_empty() && arguments[0] == "--fail-on-error" {
if output_variable.is_some() {
(1, true)
} else {
(1, false)
}
(1, output_variable.is_none())
} else {
(0, false)
};