diff options
Diffstat (limited to 'tools/check_for_upgrade.sh')
-rw-r--r-- | tools/check_for_upgrade.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh index 8b8ecae03..1aba9a272 100644 --- a/tools/check_for_upgrade.sh +++ b/tools/check_for_upgrade.sh @@ -1,7 +1,13 @@ #!/bin/sh +PLAT=`uname -s` function _current_epoch() { - echo $(($(date +%s) / 60 / 60 / 24)) + if [ "$PLAT" = "SunOS" ] + then + echo $(($(perl -e 'print time') / 60 / 60 / 24)) + else + echo $(($(date +%s) / 60 / 60 / 24)) + fi } function _update_zsh_update() { |