0

Can someone tell me what the purpose of "-exc", "|", and "export TERM=dumb" in concourse .yaml file?

 run:
    path: sh
    args:
    - -exc
    - |
      export TERM=dumb
iamdanchiv
  • 4,052
  • 4
  • 37
  • 42
dab
  • 57
  • 3

1 Answers1

3

The args -exc are just arguments to sh (which is the Bourne shell), you can read the man pages to learn more about each of them.

The most important of those arguments is -c, which allows you to run a command that's passed in as a string for the next argument, which in this case is the line that begins |\nexport TERM=dumb.

I'm unsure why anyone would export TERM=dumb in a concourse script. It's unnecessary. This might be a relic of someone porting over scripts that were meant to perform CI in docker containers to CI in Concourse.

materialdesigner
  • 1,492
  • 10
  • 13