title: Shell script continue after failure
body: <p>How do I write a shell script that continues execution even if a specific command failed, however I want to output as error later, I tried this:</p>
  
  <pre><code>#!/bin/bash
  ./node_modules/.bin/wdio wdio.conf.js --spec ./test/specs/login.test.js
  rc=$?
  echo "print here"
  chown -R gitlab-runner /gpc_testes/
  chown -R gitlab-runner /gpc_fontes/
  exit $rc
  </code></pre>
  
  <p>However the script stops when the node modules command fails.</p>