Skip to content

Commit 78422ce

Browse files
committed
change abort condition
1 parent 15c88ae commit 78422ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zerotier/files/zerotier.init

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ start_instance() {
5050
local sf="/tmp/zt.$cfg.secret"
5151

5252
zerotier-idtool generate "$sf" > /dev/null
53-
[ -f "$sf" ] || return 1
53+
[ $? -ne 0 ] && return 1
5454

5555
secret="$(cat $sf)"
5656
rm "$sf"

0 commit comments

Comments
 (0)