Commit 7a2ec01f authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

add exec_hook function

parent 494f8132
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -257,6 +257,18 @@ stages:
    done
  }

  function exec_hook() {
    if [[ ! -x "$1" ]] && ! chmod +x "$1"
    then
      log_warn "... could not make \\e[33;1m${1}\\e[0m executable: please do it (chmod +x)"
      # fallback technique
      sh "$1"
    else
      "$1"
    fi
  }


  function output_coverage() {
    echo "[TODO]: compute and output global coverage result"
    echo "11% covered"