Browse Source

fix: dev: [0km] return failing errorlevel on checks

Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
rc1
Valentin Lab 4 years ago
parent
commit
e4b723614e
  1. 4
      bin/0km

4
bin/0km

@ -228,9 +228,9 @@ vps_check() {
echo "${DARKRED}no-size${NORMAL}" echo "${DARKRED}no-size${NORMAL}"
fi </dev/null fi </dev/null
compose_content=$(ssh:run "root@$vps" -- cat /opt/apps/myc-deploy/compose.yml </dev/null) || compose_content=$(ssh:run "root@$vps" -- cat /opt/apps/myc-deploy/compose.yml </dev/null) ||
{ echo "${DARKRED}no-compose${NORMAL}"; return; }
{ echo "${DARKRED}no-compose${NORMAL}"; return 1; }
echo "$compose_content" | grep backup >/dev/null 2>&1 || echo "$compose_content" | grep backup >/dev/null 2>&1 ||
{ echo "${DARKRED}no-backup${NORMAL}"; return; }
{ echo "${DARKRED}no-backup${NORMAL}"; return 1; }
} }

Loading…
Cancel
Save