]> git.plutz.net Git - clickslide/commitdiff
minor optimisation
authorPaul Hänsch <paul@plutz.net>
Mon, 16 Jul 2018 10:21:13 +0000 (12:21 +0200)
committerPaul Hänsch <paul@plutz.net>
Mon, 16 Jul 2018 10:21:13 +0000 (12:21 +0200)
file.sh

diff --git a/file.sh b/file.sh
index 084b7e643ee03ad3f55065e02d3bfa1d9865fa94..82eefae0af0298b09a64261913947d0622752aba 100755 (executable)
--- a/file.sh
+++ b/file.sh
@@ -66,7 +66,7 @@ FILE(){
               s;^[^ ]+ (...)  ([0-9]) (..:..:..) ([0-9]{4})$;\4-\1-\2 \3;;
               s;Jan;01;; s;Feb;02;; s;Mar;03;; s;Apr;04;; s;May;05;; s;Jun;06;;
               s;Jul;07;; s;Aug;08;; s;Sep;09;; s;Oct;10;; s;Nov;11;; s;Dec;12;;' \
-    | xargs -0 date +%s -ud 2>&-
+    | xargs -r0 date +%s -ud 2>&-
   )"
 
   range="$(HEADER Range |sed -nr 's;^bytes=([0-9]+-[0-9]*|-[0-9]+)$;\1;p;q;')"