From 4e69542ba315f1c27ce93ac3056040d8830cc0d8 Mon Sep 17 00:00:00 2001 From: James Zhang Date: Thu, 22 May 2025 00:27:45 +0800 Subject: [PATCH] feat(ddnspod.bat): add ddnspod.bat for windows with git --- ddnspod.bat | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ddnspod.bat diff --git a/ddnspod.bat b/ddnspod.bat new file mode 100644 index 0000000..2e41a8f --- /dev/null +++ b/ddnspod.bat @@ -0,0 +1,16 @@ +@echo off + +SET Program86path=C:\"Program Files (x86)"\Git\bin\bash.exe +SET Program64path=C:\"Program Files"\Git\bin\bash.exe + +if exist %Program86path% ( + start /b %Program86path% ddnspod.sh +) else ( + if exist %Program64path% ( + start /b %Program64path% ddnspod.sh + ) else ( + echo "No git bash found, please install git bash" + ) +) + +exit 0 \ No newline at end of file