diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/check_for_upgrade.sh | 6 | 
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() {  | 
