mirror of
https://github.com/sagiegurari/duckscript
synced 2024-10-14 11:53:05 +00:00
Bug fix in exec command with fail on error flag
This commit is contained in:
parent
97605e06cb
commit
b670cec680
|
@ -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.
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue