Skip to content

Commit

Permalink
Remove useless check in publish script [skip ci].
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Apr 2, 2019
1 parent 6e9bf4a commit 935a127
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ for CRATE in ${CRATES[@]}; do
echo "INFO : processing crate ${CRATE}."
pushd $CRATE > /dev/null

VERSION="$(cargo pkgid | cut -d# -f2)"

if ! curl -s -o /dev/null -w '%{http_code}' https://github.com/apognu/knox/tree/v${VERSION} | grep 200 > /dev/null; then
echo "ERROR: tag v${VERSION} does not exist in upstream git repository."
exit 1
fi

cp Cargo.toml Cargo.toml.bak
sed -i 's/build =.*/build = false/' Cargo.toml
sed -i '/^\[dev-dependencies\]/,/^$/d' Cargo.toml
Expand Down

0 comments on commit 935a127

Please sign in to comment.