#!/bin/bash __year=2024 __day="${1}" if [ -z "${__day}" ]; then __day=$(date '+%d') fi padded=$(printf "%02g" ${__day}) if [ -f "${padded}/index.ts" ]; then cd $padded npx tsx "index.ts" 2>/dev/null cd - >/dev/null else echo "day not found" fi