#!/usr/bin/env bash abort() { echo echo "********* !!! ERROR !!! ********" # display error msg echo $1 echo "********* !!! ERROR !!! ********" echo # exit with error exit 1 } # 1) Stop ./KILL_PYROS_DOCKER_RUN || abort "Could not kill" # kill twice to be sure it's really dead ! #./KILL_PYROS_DOCKER_RUN # 2) Update ./PYROS_DOCKER_UPDATE || abort "Could not update" # 3) Test ./PYROS_DOCKER_TEST || abort "TESTS KO" # 4) Start again ./PYROS_DOCKER_RUN $1 || abort "Could not run" # See what's running ./KILL_PYROS_DOCKER_RUN no