From a0abaa6a2b1e9afc868cf4b1b08cacc9ca78691c Mon Sep 17 00:00:00 2001 From: "xiongdian.me" Date: Mon, 29 May 2023 18:23:58 +0800 Subject: [PATCH] sagent.sh: refuse to work on windows --- tools/sagent.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/sagent.sh b/tools/sagent.sh index dd524bf..24e5024 100755 --- a/tools/sagent.sh +++ b/tools/sagent.sh @@ -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