Skip to content

Commit fd74ecf

Browse files
committed
修正isServ00
1 parent 65fc7bd commit fd74ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keepalive.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ checkAlistAlive() {
174174
fi
175175
}
176176
isServ00() {
177-
return $(hostname | grep 'serv00')
177+
[[ $(hostname) == *"serv00"* ]]
178178
}
179179

180180
startAlist() {

0 commit comments

Comments
 (0)