Skip to content

Commit 15aea74

Browse files
committed
Fix updating lockfile
1 parent fb12820 commit 15aea74

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

publish.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ function updateVersion {
2727
do
2828
if [ "$CRATE" = "librespot" ]
2929
then
30-
CRATE=''
30+
CRATE_DIR=''
31+
else
32+
CRATE_DIR=$CRATE
3133
fi
32-
crate_path="$WORKINGDIR/$CRATE/Cargo.toml"
34+
crate_path="$WORKINGDIR/$CRATE_DIR/Cargo.toml"
3335
crate_path=${crate_path//\/\///}
3436
sed -i '' "s/^version.*/version = \"$1\"/g" "$crate_path"
3537
echo "Path is $crate_path"
3638
if [ "$CRATE" = "librespot" ]
3739
then
40+
echo "Updating lockfile"
3841
if [ "$DRY_RUN" = 'true' ] ; then
3942
cargo update --dry-run
4043
git add . && git commit --dry-run -a -m "Update Cargo.lock"

0 commit comments

Comments
 (0)