summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-11-06 09:26:48 -0800
committerRobby Russell <robby@planetargon.com>2014-11-06 09:26:48 -0800
commit57ff83db59fed432d6e802f895974265970343d6 (patch)
tree06738312e30651d04ab9b283b64953b7c621f8a1 /tools
parent0f7e5e41b83006d4897682fe81547b608824c7ba (diff)
parent3a3973284534c318e2cb987a0db1121302d04e10 (diff)
downloadzsh-57ff83db59fed432d6e802f895974265970343d6.tar.gz
zsh-57ff83db59fed432d6e802f895974265970343d6.tar.bz2
zsh-57ff83db59fed432d6e802f895974265970343d6.zip
Merge pull request #2946 from moinakg/master
Solaris portability tweaks.
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 35e074297..4a0803210 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -1,7 +1,9 @@
-#!/bin/sh
+#!/usr/bin/env zsh
+
+zmodload zsh/datetime
function _current_epoch() {
- echo $(($(date +%s) / 60 / 60 / 24))
+ echo $(( $EPOCHSECONDS / 60 / 60 / 24 ))
}
function _update_zsh_update() {