From a3b1463f439d68563ab69bd2b984ade14186086d Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 19 May 2022 09:07:41 +0800 Subject: [PATCH] fix: env.sh failed silently if runit didn't exist --- env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env.sh b/env.sh index fcc0819..212ffe9 100755 --- a/env.sh +++ b/env.sh @@ -11,7 +11,7 @@ GITHUB_PROXY=${GITHUB_PROXY-$HTTPS_PROXY} WSL=$(grep -i Microsoft /proc/sys/kernel/osrelease || true) TMPDIR=${TMPDIR-"/tmp"} UNAMEA=$(uname -a) -RUNIT=$(command -v runit) +RUNIT=$(command -v runit || true) in_china() { ! [ -f $TMPDIR/myip_full ] && curl -s myip.ipip.net > $TMPDIR/myip_full