Files

17 lines
496 B
Bash
Executable File

#!/bin/sh
set -eu
repo_root="$(git rev-parse --show-toplevel)"
script_path="$repo_root/screen-rtsp.ps1"
config_path="$repo_root/config.ini"
if ! command -v powershell.exe >/dev/null 2>&1; then
echo "ScreenRTSP: powershell.exe를 찾을 수 없어 config.ini 자동 기록 정보를 제거할 수 없습니다." >&2
exit 1
fi
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$script_path" \
-ConfigPath "$config_path" -ResetManagedInfo >/dev/null
git add -- "$config_path"