Update Solaris changes to use OSTYPE and zsh datetime module.

This commit is contained in:
Moinak Ghosh committed 2014-09-16 22:29:52 +05:30
1 parent 5e328e3a9c
commit 5f38a537ce
4 files changed
+6 -11

No files matched your search

+4 -8
View File
@@ -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() {