We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f631fc6 commit 4423cbfCopy full SHA for 4423cbf
upgrade.sh
@@ -1,5 +1,11 @@
1
#!/bin/bash
2
3
+if sed --version 2>/dev/null | grep -q GNU; then
4
+ SED_INPLACE="sed -i"
5
+else
6
+ SED_INPLACE="sed -i ''"
7
+fi
8
+
9
## How to run
10
## `./upgrade.sh`
11
@@ -22,5 +28,10 @@ fi
22
28
23
29
echo "Start to upgrade from $duckdb_rs_version to $duckdb_version"
24
30
25
-sed -i '' "s/$duckdb_rs_version/$duckdb_version/g" Cargo.toml crates/libduckdb-sys/upgrade.sh crates/libduckdb-sys/Cargo.toml .github/workflows/rust.yaml
26
-./crates/libduckdb-sys/upgrade.sh
31
+$SED_INPLACE "s/$duckdb_rs_version/$duckdb_version/g" \
32
+ Cargo.toml \
33
+ crates/libduckdb-sys/upgrade.sh \
34
+ crates/libduckdb-sys/Cargo.toml \
35
+ .github/workflows/rust.yaml
36
37
+exec ./crates/libduckdb-sys/upgrade.sh
0 commit comments