Skip to content

Commit

Permalink
ovs-pki: OS X compatibility
Browse files Browse the repository at this point in the history
Handle OS X like other BSDs (date -r is not supported, use sha1
instead of sha1sum).

Signed-off-by: Lance Richardson <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
hlrichardson authored and blp committed Mar 23, 2016
1 parent 291716e commit 8be8c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/ovs-pki.in
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ bits=2048

# OS-specific compatibility routines
case $(uname -s) in
FreeBSD|NetBSD)
FreeBSD|NetBSD|Darwin)
file_mod_epoch()
{
stat -r "$1" | awk '{print $10}'
Expand Down

0 comments on commit 8be8c95

Please sign in to comment.