Xray-install icon indicating copy to clipboard operation
Xray-install copied to clipboard

脚本有个文本错误

Open cygauss opened this issue 1 year ago • 8 comments

help中 --logrotate 项有写 under 12:00:00 should be start with 0, e.g. 01:23:45. 这里12应该是10吧

cygauss avatar Apr 05 '24 10:04 cygauss

哈哈哈哈 够细

Fangliding avatar Apr 05 '24 10:04 Fangliding

我的,写的时候没带脑子

chise0713 avatar Apr 05 '24 10:04 chise0713

不是,这节regex是match符合还是不符合的?我输入"12:34:56"也错的

是不是逻辑反转了

SodaWithoutSparkles avatar Apr 05 '24 11:04 SodaWithoutSparkles

~~好像是我写错了~~

chise0713 avatar Apr 05 '24 11:04 chise0713

不对,没错

chise0713 avatar Apr 05 '24 11:04 chise0713

判断没错,是 if 忘记取反了,背大锅

chise0713 avatar Apr 05 '24 11:04 chise0713

抽了那一片程序测试,没问题

if ! grep -qE '\b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b' <<< "00:00:00"; then

  echo "wrong"

fi

SodaWithoutSparkles avatar Apr 05 '24 11:04 SodaWithoutSparkles

抽了那一片程序测试,没问题

if ! grep -qE '\b([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]\b' <<< "00:00:00"; then

  echo "wrong"

fi

https://github.com/XTLS/Xray-install/commit/34df513a033afa2c64e4fa2353185c56e84a1ae9#diff-b987da59f640929590fd09160a2098fa77a731a75ff5de3e88be9996e0b62e5dR303 ~~我这里是忘记取反了~~

chise0713 avatar Apr 05 '24 11:04 chise0713

Resolved by #73

是不是可以关掉issue 了?

SodaWithoutSparkles avatar May 31 '24 19:05 SodaWithoutSparkles