Add shell linting and tidying and update all shell scripts

This commit is contained in:
Dave Rolsky
2024-05-18 12:09:08 +08:00
parent c464bd9469
commit 9b467e6799
9 changed files with 69 additions and 33 deletions

View File

@@ -9,7 +9,7 @@ VERSION="$2"
cd "$CROSS_DIR"
if [[ -n "$VERSION" ]] && ! [[ "$VERSION" =~ ^v ]]; then
if [[ -n $VERSION ]] && ! [[ $VERSION =~ ^v ]]; then
cargo install cross --git https://github.com/cross-rs/cross --rev "$VERSION"
mv "$HOME/.cargo/bin/cross" .
exit 0
@@ -22,6 +22,7 @@ fi
export TARGET=.
curl --silent --location \
https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh |
https://raw.githubusercontent.com/houseabsolute/ubi/master/bootstrap/bootstrap-ubi.sh |
sh
# shellcheck disable=SC2086
./ubi --project cross-rs/cross --matching musl --in . $VERSION_ARGS