From f57e70617a8b4587f9bd92915f98bfc18d5619f9 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 2 Dec 2014 19:42:07 +0100 Subject: add httpdate Signed-off-by: Florian Pritz --- httpdate | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 httpdate (limited to 'httpdate') diff --git a/httpdate b/httpdate new file mode 100755 index 0000000..437f345 --- /dev/null +++ b/httpdate @@ -0,0 +1,3 @@ +#!/bin/bash + +date -s "$(curl -I google.com | sed -rn "s/^Date: (.*)$/\1/p")" -- cgit v1.2.3-24-g4f1b