Update habits to ensure that the HABITS and METRICS are defined
This commit is contained in:
parent
fa9b90ae1b
commit
b71482c4ce
1 changed files with 8 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue