From 20fd08dd6d8bc6b35dc135ab63f8fbe56218a771 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 4 Aug 2017 23:22:48 -0400 Subject: Use $() in snapshot.sh I don't know why I wrote ``. --- snapshot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snapshot.sh b/snapshot.sh index 2f15498..536e289 100755 --- a/snapshot.sh +++ b/snapshot.sh @@ -1,5 +1,5 @@ #!/bin/sh set -e -u -ts=`date +'%Y.%m.%d.%H.%M'` +ts=$(date +'%Y.%m.%d.%H.%M') gzip -c -9 < "$1/torus.dat" > "$2/torus.dat.$ts.gz" -- cgit 1.4.1