try to fix ci for macos

This commit is contained in:
xiongdian.me 2023-07-29 16:21:10 +08:00
parent aafafda412
commit 5938ca8d22

View File

@ -3,6 +3,12 @@
set -ex set -ex
trap "dfs beacon gh.ci.fail" ERR trap "dfs beacon gh.ci.fail" ERR
# fix for macos
dfs cd
if [[ $(./tools/common.sh get_os_type) == "macos" ]]; then
export PATH="/usr/local/opt/coreutils/libexec/gnubin:/opt/homebrew/opt/coreutils/libexec/gnubin:${PATH}"
fi
# check files # check files
cd / cd /
l l