You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tasks/scripts/stage-prebuilt-binaries.sh
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -122,18 +122,15 @@ patch_workspace_version() {
122
122
123
123
cargo_toml="${ROOT}/Cargo.toml"
124
124
cargo_toml_backup="$(mktemp)"
125
-
cargo_toml_patched="$(mktemp)"
126
125
cp "$cargo_toml""$cargo_toml_backup"
127
126
restore_cargo_toml=1
128
-
sed -E '/^\[workspace\.package\]/,/^\[/{s/^version[[:space:]]*=[[:space:]]*".*"/version = "'"${OPENSHELL_CARGO_VERSION}"'"/}'"$cargo_toml">"$cargo_toml_patched"
129
-
mv "$cargo_toml_patched""$cargo_toml"
127
+
sed -i -E '/^\[workspace\.package\]/,/^\[/{s/^version[[:space:]]*=[[:space:]]*".*"/version = "'"${OPENSHELL_CARGO_VERSION}"'"/}'"$cargo_toml"
0 commit comments