Skip to content

Commit

Permalink
Remove dependency on which
Browse files Browse the repository at this point in the history
  • Loading branch information
jennydaman committed Nov 7, 2023
1 parent 998f6ea commit 5df0370
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,12 @@ jobs:
tmpdir="\$(mktemp -d)"
cd "\$tmpdir"
if which curl > /dev/null 2>&1; then
curl -sfLo "\$file" "\$url"
elif which wget > /dev/null 2>&1; then
if curl -sfLo "\$file" "\$url" 2>&1 | grep -q "command not found"; then
wget -q -O "\$file" "\$url"
else
>&2 echo "error: curl nor wget found"
exit 1
fi
if ! [ -f "\$file" ]; then
>&2 echo "error: failed to download from \$url"
fi
tar xf "\$file"
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "mni2mz3"
version = "1.0.0-rc.4"
version = "1.0.0-rc.5"
edition = "2021"

authors = ["Jennings Zhang <[email protected]>"]
Expand Down

0 comments on commit 5df0370

Please sign in to comment.