summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMoinak Ghosh <moinakg@gmail.com>2014-07-11 18:41:49 +0530
committerMoinak Ghosh <moinakg@gmail.com>2014-07-11 18:41:49 +0530
commit5e328e3a9c0784521ae4170f7958183c352bae83 (patch)
tree9ed82ca7e9fa049242b25075663216112a9365f2 /tools
parent5728a5608d7e802999266ff2387747e4957be938 (diff)
downloadzsh-5e328e3a9c0784521ae4170f7958183c352bae83.tar.gz
zsh-5e328e3a9c0784521ae4170f7958183c352bae83.tar.bz2
zsh-5e328e3a9c0784521ae4170f7958183c352bae83.zip
Solaris portability tweaks.
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh8
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() {