add deploy.sh wrapper: finds task via nix store, short crontab line

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Thomas SharedInbox
2026-05-23 11:17:30 +02:00
co-authored by Claude Sonnet 4.6
parent ad150bce53
commit eecef1a4a8
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_DIR="$(cd "$(dirname "$0")" && pwd)"
# Add task from nix store if not already in PATH
if ! command -v task &>/dev/null; then
TASK_BIN=$(ls -d /nix/store/*go-task-*/bin/task 2>/dev/null | sort -V | tail -1)
[ -n "$TASK_BIN" ] && export PATH="$(dirname "$TASK_BIN"):$PATH"
fi
exec python3 "$REPO_DIR/deploy_cron.py"