mirror of
https://github.com/sobolevn/git-secret
synced 2024-10-31 21:20:29 +00:00
fix for #918, which picked up gnu stat from brew
This commit is contained in:
parent
905a56cd26
commit
590bd60272
@ -32,7 +32,8 @@ function __get_octal_perms_osx {
|
||||
local filename
|
||||
filename=$1
|
||||
local perms
|
||||
perms=$(stat -f "%04OLp" "$filename")
|
||||
# we use /usr/bin/stat in case there's another stat available from brew. See #918
|
||||
perms=$(/usr/bin/stat -f "%04OLp" "$filename")
|
||||
# see _git_secret_tools_freebsd.sh for more about stat's format string
|
||||
echo "$perms"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user