Skip to content

Commit

Permalink
Stat same as shell_is_osx does for BSD.
Browse files Browse the repository at this point in the history
  • Loading branch information
hadret committed Jan 14, 2013
1 parent 2908590 commit 70cac3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion segments/earthquake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ __goo_earthquake() {
magnitude_number=""
timestamp=""
if [[ -f "$tmp_file" ]]; then
if shell_is_osx; then
if shell_is_osx || shell_is_bsd; then
last_update=$(stat -f "%m" ${tmp_file})
elif shell_is_linux; then
last_update=$(stat -c "%Y" ${tmp_file})
Expand Down

0 comments on commit 70cac3f

Please sign in to comment.