commit 393ddb3e51a1ea2c688344c04dc77c9eea05cb5a
parent 54ff8574f50c378b535e9a1a7bdab7950b473262
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date: Sun, 9 Feb 2025 12:31:47 +0100
fix: ensure variable is set correctly
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/activity.sh b/activity.sh
@@ -71,7 +71,7 @@ MAX_TIME=$(date +%Y-%m -d "next month")
# get value range
MIN_VAL=0
MAX_VAL=$(echo "$AGGREGATE" | awk '{ print $1 }' | sort -n | tail -n 1)
-if [ ! -z $MAX_VAL ]; then MAX_VAL=1; fi
+if [ -z $MAX_VAL ]; then MAX_VAL=1; fi
# Generate output --------------------------------------------------------------