18 lines
393 B
Bash
Executable File
18 lines
393 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
PHASE=${1:-}
|
|
[ -n "$PHASE" ] || { echo "Usage: entry.sh <phase>" >&2; exit 2; }
|
|
|
|
case "$PHASE" in
|
|
pre-inj|post-inj)
|
|
mkdir -p "$LIVE_DIR/builder-notes"
|
|
printf 'sample-feature entry.sh %s
|
|
' "$PHASE" > "$LIVE_DIR/builder-notes/feature-entry-${PHASE}.txt"
|
|
;;
|
|
*)
|
|
echo "Unsupported feature phase: $PHASE" >&2
|
|
exit 2
|
|
;;
|
|
esac
|