0
ENV=${deploy-qa}  
echo $ENV
qa

Relatively new to bash and I'm trying to set up a pipeline that switched based off the ending of a string and accidentally stumbled across this. I'm unsure how this actually returns 'qa' though. This is what I was looking to do, but I'd like to understand what's actually happening. I dont understand whats causing the 'deploy-' bit to drop off.

Charles Duffy
  • 280,126
  • 43
  • 390
  • 441
themiDdlest
  • 96
  • 1
  • 13

0 Answers0