3 Star 0 Fork 0

mirrors_sfackler/crates-build-env

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
lint.sh 512 Bytes
一键复制 编辑 原始数据 按行查看 历史
Pietro Albini 提交于 2021-04-15 12:28 . replace travis with gha
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
export LC_ALL=C
PACKAGES_FILES=(
linux/packages.txt
linux-micro/packages.txt
)
# Ensure packages lists are sorted
for file in ${PACKAGES_FILES[@]}; do
# Replace / with - in the file path to avoid creating subdirs.
sorted_file="/tmp/sorted-${file/\//-}"
cat "${file}" | sort -u > "${sorted_file}"
if ! diff -u "${sorted_file}" "${file}"; then
echo "Lint error: ${file} is not sorted"
exit 1
fi
done
echo "All lints passed"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_sfackler/crates-build-env.git
[email protected]:mirrors_sfackler/crates-build-env.git
mirrors_sfackler
crates-build-env
crates-build-env
master

搜索帮助