hardcode location of command stat for macOS

Hardcode /usr/bin/stat to bypass stat from coreutils.
This commit is contained in:
laggardkernel 2019-06-03 23:28:05 +08:00
parent 4f939ade9a
commit facb6f40fb
1 changed files with 2 additions and 2 deletions

View File

@ -133,8 +133,8 @@ _vagrant_caching_policy()
;;
esac
case $(uname -s) in
Darwin) STATCMD="stat -f '%c'" ;;
case "$OSTYPE" in
darwin*) STATCMD="/usr/bin/stat -f '%c'" ;;
*) STATCMD="stat -c '%Z'" ;;
esac
reg_time=${$(${(z)STATCMD} $check_file):Q}