From 7cd2ac70cb3bbc212779372382b66ad780b2f580 Mon Sep 17 00:00:00 2001 From: lachtan Date: Tue, 28 Feb 2023 09:42:31 +0100 Subject: [PATCH] Fix multiple time_ms definition --- functions.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions.sh b/functions.sh index a814179..3cd65ef 100644 --- a/functions.sh +++ b/functions.sh @@ -1,6 +1,8 @@ # Linux Workspace Functions -readonly time_ms='date +%s%3N' +if [ -z "$time_ms" ]; then + readonly time_ms='date +%s%3N' +fi function xlog() { if true_false "$LWS_DEBUG"; then