Fix issues uncovered while testing

This commit is contained in:
Gwilym Kuiper 2021-06-20 23:14:17 +01:00
parent ba58d3bf27
commit 05b2d66907

View file

@ -56,15 +56,15 @@ fi
(cd agb-image-converter && cargo test) (cd agb-image-converter && cargo test)
# Update the version in Cargo.toml # Update the version in Cargo.toml
sed -i -e "s/^version = .*/version = $VERSION/" "$DIRECTORY/Cargo.toml" sed -i -e "s/^version = \".*\"/version = \"$VERSION\"/" "$DIRECTORY/Cargo.toml"
# Also update the lock file # Also update the lock file
(cd "$DIRECTORY" && cargo update) (cd "$DIRECTORY" && cargo update)
git add "$DIRECTIORY/Cargo.toml" git add "$DIRECTORY/Cargo.toml"
if [ "$PROJECT" = "agb" ]; then if [ "$PROJECT" = "agb" ]; then
# also update the agb version in the template # also update the agb version in the template
sed -i -e "s/agb = \"\(.*\)\"/$VERSION/" template/Cargo.toml sed -i -e "s/^agb = \".*\"/agb = \"$VERSION\"/" template/Cargo.toml
git add template/Cargo.toml git add template/Cargo.toml
fi fi