hardcode location of command stat for macOS
Hardcode /usr/bin/stat to bypass stat from coreutils.
This commit is contained in:
parent
4f939ade9a
commit
facb6f40fb
|
@ -133,8 +133,8 @@ _vagrant_caching_policy()
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case $(uname -s) in
|
case "$OSTYPE" in
|
||||||
Darwin) STATCMD="stat -f '%c'" ;;
|
darwin*) STATCMD="/usr/bin/stat -f '%c'" ;;
|
||||||
*) STATCMD="stat -c '%Z'" ;;
|
*) STATCMD="stat -c '%Z'" ;;
|
||||||
esac
|
esac
|
||||||
reg_time=${$(${(z)STATCMD} $check_file):Q}
|
reg_time=${$(${(z)STATCMD} $check_file):Q}
|
||||||
|
|
Loading…
Reference in New Issue