We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb12820 commit 15aea74Copy full SHA for 15aea74
1 file changed
publish.sh
@@ -27,14 +27,17 @@ function updateVersion {
27
do
28
if [ "$CRATE" = "librespot" ]
29
then
30
- CRATE=''
+ CRATE_DIR=''
31
+ else
32
+ CRATE_DIR=$CRATE
33
fi
- crate_path="$WORKINGDIR/$CRATE/Cargo.toml"
34
+ crate_path="$WORKINGDIR/$CRATE_DIR/Cargo.toml"
35
crate_path=${crate_path//\/\///}
36
sed -i '' "s/^version.*/version = \"$1\"/g" "$crate_path"
37
echo "Path is $crate_path"
38
39
40
+ echo "Updating lockfile"
41
if [ "$DRY_RUN" = 'true' ] ; then
42
cargo update --dry-run
43
git add . && git commit --dry-run -a -m "Update Cargo.lock"
0 commit comments