9 lines
318 B
Bash
Executable File
9 lines
318 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
target="${1:-$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)/MODIFIED_FILE}"
|
|
repo="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
|
|
|
|
git -C "$repo" show HEAD:apps/backend/src/repositories/worker-platform/work-order-management-repo.ts > "$target"
|
|
printf 'rollback restored HEAD content: %s\n' "$target"
|