Skip to content

Commit 3df276b

Browse files
committed
fix bug
1 parent d34ff2b commit 3df276b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trunk/user/frp/frp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ down_frpc()
3030
FRP_URL="https://opt.cn2qq.com/opt-file/frpc"
3131
if [ ! -f "$frpc_path" ]; then
3232
wget -t5 --timeout=60 --no-check-certificate -O $frpc_path $FRP_URL;
33-
if [ -f "$frpc_path" ]; then
33+
if [ ! -f "$frpc_path" ]; then
3434
logger -t "frp" "无法下载应用程序frpc,请确认网络正常,有充足的空间在/etc/storage/,请手工重启再试!"
3535
echo "0"
3636
return
@@ -47,7 +47,7 @@ down_frps()
4747
FRP_URL="https://opt.cn2qq.com/opt-file/frps"
4848
if [ ! -f "$frps_path" ]; then
4949
wget -t5 --timeout=60 --no-check-certificate -O $frps_path $FRP_URL;
50-
if [ -f "$frps_path" ]; then
50+
if [ ! -f "$frps_path" ]; then
5151
logger -t "frp" "无法下载应用程序frps,请确认网络正常,有充足的空间在/etc/storage/,请手工重启再试!"
5252
echo "0"
5353
return

0 commit comments

Comments
 (0)