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

This commit is contained in:
zedhugh committed 2026-07-18 04:45:40 +08:00
1 parent eb18384977
commit d9e0ad2e88
9 files changed
+10 -10

No files matched your search

+1 -1
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
+1 -1
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