mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-04-26 04:30:59 +00:00
~修复在线生成时找不到servers.list的bug
This commit is contained in:
@@ -124,7 +124,7 @@ gen_link_config() {
|
|||||||
content_line ""
|
content_line ""
|
||||||
common_back
|
common_back
|
||||||
read -r -p "$COMMON_INPUT> " num
|
read -r -p "$COMMON_INPUT> " num
|
||||||
totalnum=$(grep -acE '^5' "$CRASHDIR"/configs/servers.list)
|
totalnum=$(grep -acE '^5' "$CRASHDIR"/configs/servers_"$i18n".list)
|
||||||
if [ -z "$num" ] || [ "$num" -gt "$totalnum" ]; then
|
if [ -z "$num" ] || [ "$num" -gt "$totalnum" ]; then
|
||||||
errornum
|
errornum
|
||||||
elif [ "$num" = 0 ]; then
|
elif [ "$num" = 0 ]; then
|
||||||
@@ -153,7 +153,7 @@ gen_link_server() {
|
|||||||
content_line ""
|
content_line ""
|
||||||
common_back
|
common_back
|
||||||
read -r -p "$COMMON_INPUT> " num
|
read -r -p "$COMMON_INPUT> " num
|
||||||
totalnum=$(grep -acE '^3|^4' "$CRASHDIR"/configs/servers.list)
|
totalnum=$(grep -acE '^3|^4' "$CRASHDIR"/configs/servers_"$i18n".list)
|
||||||
if [ -z "$num" ] || [ "$num" -gt "$totalnum" ]; then
|
if [ -z "$num" ] || [ "$num" -gt "$totalnum" ]; then
|
||||||
errornum
|
errornum
|
||||||
elif [ "$num" = 0 ]; then
|
elif [ "$num" = 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user