diff options
Diffstat (limited to 'libc/ci/style.sh')
-rw-r--r-- | libc/ci/style.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libc/ci/style.sh b/libc/ci/style.sh new file mode 100644 index 0000000..a6a0017 --- /dev/null +++ b/libc/ci/style.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env sh + +set -ex + +rustc ci/style.rs && ./style src + +if rustup component add rustfmt-preview ; then + which rustfmt + rustfmt -V + cargo fmt --all -- --check +fi + +if shellcheck --version ; then + shellcheck -e SC2103 ci/*.sh +else + echo "shellcheck not found" + exit 1 +fi + |