From 6fab05f7b856a5af9836d17760ce0badc967aaca Mon Sep 17 00:00:00 2001 From: nevaforget Date: Fri, 20 Dec 2024 00:00:53 +0100 Subject: [PATCH] fix log --- stower.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stower.sh b/stower.sh index 5ca4adf..a707af6 100755 --- a/stower.sh +++ b/stower.sh @@ -249,6 +249,12 @@ function setup { cd $HYPRMOONARCH_DIR } +function log () { + ts=$(date +"%H:%M:%S") + + printf "$ts $1\n" | tee -a $LOG +} + function init { rm -f $LOG