Files
heartwood/scripts/cache-cobs
T
Lorenz Leutgeb c7d71df4ab scripts, build, just: POSIX Compliance
Enforce POSIX shell syntax with ShellCheck using `--shell sh`.
2026-10-30 12:45:40 +01:00

20 lines
391 B
Bash
Executable File

#! /usr/bin/env sh
set -e
DIRECTORY="$(rad path)/storage"
if [ ! -d "$DIRECTORY" ]; then
echo "Error: Directory $DIRECTORY does not exist or is not accessible."
exit 1
fi
for repo in "$DIRECTORY"/*; do
if [ -d "$repo" ]; then
rid=$(basename "$repo")
echo "Processing rad:$rid.."
rad issue cache --repo "rad:$rid"
rad patch cache --repo "rad:$rid"
echo
fi
done