summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/check_for_upgrade.sh12
1 files changed, 4 insertions, 8 deletions
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index 1aba9a272..0e8845ab4 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -1,13 +1,9 @@
-#!/bin/sh
+#!/usr/bin/env zsh
+
+zmodload zsh/datetime
-PLAT=`uname -s`
function _current_epoch() {
- if [ "$PLAT" = "SunOS" ]
- then
- echo $(($(perl -e 'print time') / 60 / 60 / 24))
- else
- echo $(($(date +%s) / 60 / 60 / 24))
- fi
+ echo $EPOCHSECONDS
}
function _update_zsh_update() {