14 lines
408 B
Bash
Executable File
14 lines
408 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Compatibility wrapper. Prefer:
|
|
# ./CICD/scripts/runner-host.sh reclaim "$HOST"
|
|
# to free job/BuildKit cache without restarting Docker.
|
|
set -euo pipefail
|
|
dir="$(cd "$(dirname "$0")" && pwd)"
|
|
if [ "${1:-}" = "-h" ] || [ "${1:-}" = "--help" ]; then
|
|
exec "$dir/runner-host.sh" --help
|
|
fi
|
|
if [ -n "${1:-}" ]; then
|
|
exec "$dir/runner-host.sh" stop "$1"
|
|
fi
|
|
exec "$dir/runner-host.sh" stop
|