sagent.sh: refuse to work on windows

This commit is contained in:
xiongdian.me 2023-05-29 18:23:58 +08:00
parent 1784292115
commit a0abaa6a2b

View File

@ -79,6 +79,10 @@ all()
route()
{
os_type="$(get_os_type)"
if [[ "$os_type" == "msys" || "$os_type" == "cygwin" ]]; then
fmt_fatal "unsupported platform: $os_type. you may use WinCryptSSHAgent."
fi
if [[ $# -eq 0 ]]; then
all
return