Update habits to ensure that the HABITS and METRICS are defined

This commit is contained in:
Alex Selimov 2026-07-26 20:12:59 -04:00
parent fa9b90ae1b
commit b71482c4ce

View file

@ -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() {