18 lines
262 B
Bash
Executable file
18 lines
262 B
Bash
Executable file
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
PUSH=1
|
|
if [[ "${1-}" == "--no-push" ]]; then
|
|
PUSH=0
|
|
shift
|
|
fi
|
|
|
|
OUT="${1:-inky_today.png}"
|
|
|
|
./.venv/bin/python inky_today.py "$OUT" --no-push
|
|
|
|
if (( PUSH )); then
|
|
./push-to-inky.sh "$OUT"
|
|
fi
|