title: trying to launch emulator using shell script
body: <p>I have created an emulator on my mac machine. When I try to launch the emulator manually from avd manager, I am successful. Also, if I launch the emulator on the command line by </p>
  
  <pre><code>emulator -avd nexus5_api21
  </code></pre>
  
  <p>the emulator starts. But when I write a small shell script to do the same, like</p>
  
  <pre><code>#!/bin/bash
  echo "hello"
  emulator -avd nexus5_api21
  </code></pre>
  
  <p>my emulator doesn't start. It complains, that it couldn't find the .ini file. But the same command works, when I do it separately by opening a terminal. I don't have to go to a specific location for running this command successfully. </p>
  
  <p>I don't understand, what the difference between the command line and the shell script is.</p>