Files
ThothII/scripts/p11-manual-acceptance.sh

9 lines
311 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
if [[ $# -ne 1 || ! "$1" =~ ^(prepare|serve|stop|cleanup)$ ]]; then
printf 'usage: %s prepare|serve|stop|cleanup\n' "$0" >&2
exit 2
fi
exec node "$repo_root/backend/scripts/p11-manual-acceptance.mjs" "$1"