diff --git a/packaging/env.sh b/packaging/env.sh index 1e6e2cde1..a771b907f 100644 --- a/packaging/env.sh +++ b/packaging/env.sh @@ -16,6 +16,7 @@ export ROOT # (`cargo xtask version` prints the same thing; awk avoids compiling xtask here.) workspace_version() { awk ' + { sub(/\r$/, "") } /^\[/ { in_pkg = ($0 == "[workspace.package]") ; next } in_pkg && $1 == "version" { gsub(/[" ]/, "", $3); print $3; exit } ' "$ROOT/Cargo.toml"