Skip to content

Commit c7effa3

Browse files
committed
install.sh: Improve portability
Both coreutils stat and busybox stat support `-c`, but busybox stat does not support `--printf`.
1 parent 708c94e commit c7effa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ else
187187
HOMEBREW_REPOSITORY="${HOMEBREW_PREFIX}/Homebrew"
188188
HOMEBREW_CACHE="${HOME}/.cache/Homebrew"
189189

190-
STAT_PRINTF=("/usr/bin/stat" "--printf")
190+
STAT_PRINTF=("/usr/bin/stat" "-c")
191191
PERMISSION_FORMAT="%a"
192192
CHOWN=("/bin/chown")
193193
CHGRP=("/bin/chgrp")

0 commit comments

Comments
 (0)