title: how to resolve warning ''using a subshell to avoid having to cd back'
body: <p>The folder structure like this:</p>
  
  <pre><code>folder_01
  ├── folder_02├──Dockerfile_02
  ├── folder_03├──Dockerfile_03 &amp; example.sh
  </code></pre>
  
  <p>In the example.sh script, I want to use <code>cd</code> to navigate back to <code>folder_02</code> and use the dockerfile_02 to build an image and then navigate back to the current dir (which is <code>folder_03</code>)
  Here's what I tried:</p>
  
  <pre><code>cd ..
  cd ./folder_02
  docker build . -t image_name
  
  cd ..
  cd ./folder_03
  </code></pre>
  
  <p>In intelliJ, it gave me warning <code>using a subshell to avoid having to cd back</code>, I read some documentation about it but haven't got a solution, can someone help me?</p>