dot: 去掉 realpath -m 以尽量兼容 FreeBSD (其 realpath 不支持 -m 且行为存在差异)

This commit is contained in:
2026-07-18 04:45:40 +08:00
parent eb18384977
commit d9e0ad2e88
9 changed files with 10 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
basedir=$(realpath -m $(dirname "${BASH_SOURCE[0]:-$0}"))
basedir=$(realpath $(dirname "${BASH_SOURCE[0]:-$0}"))
source "${basedir}/function.bash"
unset basedir