From 78422ceb66a49f19bc3f397d030bc4be40fae6e7 Mon Sep 17 00:00:00 2001 From: Moritz Warning Date: Thu, 12 Apr 2018 17:53:06 +0200 Subject: [PATCH] change abort condition --- zerotier/files/zerotier.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zerotier/files/zerotier.init b/zerotier/files/zerotier.init index 2b03e5c..390dbd3 100644 --- a/zerotier/files/zerotier.init +++ b/zerotier/files/zerotier.init @@ -50,7 +50,7 @@ start_instance() { local sf="/tmp/zt.$cfg.secret" zerotier-idtool generate "$sf" > /dev/null - [ -f "$sf" ] || return 1 + [ $? -ne 0 ] && return 1 secret="$(cat $sf)" rm "$sf"