1
0
Fork 0
mirror of https://github.com/librespot-org/librespot.git synced 2025-10-03 09:49:31 +02:00

fix: update version only if version.workspace is not set

This commit is contained in:
Roderick van Domburg 2025-08-24 16:17:37 +02:00
parent 9d0e39f9c3
commit ba4562c3c0
No known key found for this signature in database
GPG key ID: 607FA06CB5236AE0

View file

@ -49,7 +49,7 @@ function updateVersion {
fi fi
crate_path="$WORKINGDIR/$CRATE_DIR/Cargo.toml" crate_path="$WORKINGDIR/$CRATE_DIR/Cargo.toml"
crate_path=${crate_path//\/\///} crate_path=${crate_path//\/\///}
$(replace_in_file "s/^version.*/version = \"$1\"/g" "$crate_path") $(replace_in_file "s/^version =.*/version = \"$1\"/g" "$crate_path")
echo "Path is $crate_path" echo "Path is $crate_path"
if [ "$CRATE" = "librespot" ] if [ "$CRATE" = "librespot" ]
then then