release.sh: fix the builder-login detection (info output is multiline)
This commit is contained in:
1 parent
cb7661dde6
commit
bcc85709f6
1 file changed
+1
-1
+1
-1
@@ -46,7 +46,7 @@ cmd_build() {
|
|||||||
[ -z "$(git status --porcelain)" ] || die "working tree is dirty — commit first, the tag carries the git sha"
|
[ -z "$(git status --porcelain)" ] || die "working tree is dirty — commit first, the tag carries the git sha"
|
||||||
|
|
||||||
local logged_in=0
|
local logged_in=0
|
||||||
if cloudron builder info 2>/dev/null | grep -viq "not logged in"; then logged_in=1; fi
|
if ! cloudron builder info 2>/dev/null | grep -qi "not logged in"; then logged_in=1; fi
|
||||||
|
|
||||||
local authargs=()
|
local authargs=()
|
||||||
if [ -n "${REGISTRY_BUILD_TOKEN:-}" ]; then
|
if [ -n "${REGISTRY_BUILD_TOKEN:-}" ]; then
|
||||||
|
|||||||
Reference in new issue
Block a user