From 96e6e179e52720167d30dce4a0dffcfad13b2af2 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Sat, 3 Sep 2022 21:51:05 +0800 Subject: [PATCH] Update speed.sh --- speed.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/speed.sh b/speed.sh index 0a3799f..50d4f15 100644 --- a/speed.sh +++ b/speed.sh @@ -185,6 +185,7 @@ input(){ [ $i -gt 1 ] && NOT_BLANK="$(eval echo "\${${T}[4]}") " && [ $i = 6 ] && red "\n $(eval echo "\${${T}[5]}") " && exit 1 reading "\n ${NOT_BLANK}$(eval echo "\${${T}[6]}") " URL done + [ -n "$URL" ] && URL="-u $URL" yellow "\n $(eval echo "\${${T}[7]}") " reading "\n $(eval echo "\${${T}[8]}") " INCLUDE_REMARK [ -n "$INCLUDE_REMARK" ] && INCLUDE_REMARK="--include-remark $INCLUDE_REMARK" @@ -230,7 +231,7 @@ check_ssrspeedn(){ test(){ green "\n $(eval echo "\${${T}[16]}") \n" - sudo python3 -m ssrspeed -u "$URL" "$INCLUDE_REMARK" "$EXCLUDE_REMARK" "$GROUP" "$RESULT_COLOR" "$SORT_METHOD" --yes --skip-requirements-check + sudo python3 -m ssrspeed $URL $INCLUDE_REMARK $EXCLUDE_REMARK $GROUP $RESULT_COLOR $SORT_METHOD --yes --skip-requirements-check } uninstall(){