From 1d78368c008f638fa79f6ae071dbff204e8bc948 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Mon, 18 Mar 2024 23:56:10 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 43 +++++++++++++++++++++++++------------------ trans.sh | 1 + 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 9405026..0a0aece 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -20,20 +20,25 @@ trap_err() { } usage_and_exit() { + if is_in_windows; then + reinstall____=' reinstall.bat' + else + reinstall____='./reinstall.sh' + fi cat <&2 for i in $(seq 5); do command wget "$@" && return sleep 1