From b71482c4cee5cf9ace48f7f5f74f15cafcee7e3b Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sun, 26 Jul 2026 20:12:59 -0400 Subject: [PATCH] Update habits to ensure that the HABITS and METRICS are defined --- habits.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/habits.sh b/habits.sh index f3acfc9..41c040b 100755 --- a/habits.sh +++ b/habits.sh @@ -1,6 +1,14 @@ #!/usr/bin/env bash set -euo pipefail +if [ -z "$HABITS" ]; then + echo "Define a HABITS variable with a list of habits" +fi + +if [ -z "$METRICS" ]; then + echo "Define a METRICS variable with a list of habits" +fi + HABITS_FILE="${HABITS_FILE:-$HOME/.local/share/os/habits.md}" usage() {