dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit c62a80b857b6b8fce7613ffc2d068e50e614f5eb
parent b0896ab017473b704b797422f20687ff4d54d539
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 14 Oct 2018 21:32:58 -0400

usr/local/bin/alarm: Make it openbsd compatible.

Not compatible with gnu/linux anymore :|

Diffstat:
usr/local/bin/alarm | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/usr/local/bin/alarm b/usr/local/bin/alarm @@ -4,11 +4,12 @@ # # Usage # -# $ alarm HH:MM +# $ alarm YYMMDDHHMM # +# On gnu/linux, change '-j' -> '--date='. # Time in seconds since epoch. -TIME=$(date --date="$1" +%s 2> /dev/null); +TIME=$(date -j "$1" +%s 2> /dev/null); if [ -z $TIME ];then echo 'Invalid time'