Merge pull request #635 from laggardkernel/fix-vagrant

hardcode location of command stat for macOS
This commit is contained in:
Julien Nicoulaud 2019-06-18 19:45:43 +02:00 committed by GitHub
commit c4e71acece
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}