Skip to content

Commit

Permalink
rustc-nighly: cleanup toolchain
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
licy183 authored Oct 20, 2024
1 parent 96906f0 commit 636cbcd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tur/rustc-nightly/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,16 @@ termux_pkg_auto_update() {

if [[ "${latest_version}" == "${TERMUX_PKG_VERSION}" ]]; then
echo "INFO: No update needed. Already at version '${TERMUX_PKG_VERSION}'."
rm -rf ~/.cargo ~/.rustup
return
elif [ "$(echo "$latest_version $TERMUX_PKG_VERSION" | tr " " "\n" | sort -V | head -n 1)" == "$latest_version" ]; then
echo "Error: It seems that rustc-nightly version $latest_version is withdrawed."
rm -rf ~/.cargo ~/.rustup
exit 1
fi

# termux_pkg_upgrade_version "$latest_version"
echo "INFO: latest_version: $latest_version"
exit 1

rm -rf ~/.cargo ~/.rustup
termux_pkg_upgrade_version "$latest_version"
}

termux_step_post_get_source() {
Expand Down

0 comments on commit 636cbcd

Please sign in to comment.