title: Best way to tell if any processes are still running on a loopfs partition?
body: <p>Q: How do I fix this error, or what is the best way to do this?</p>
  <p>Used in a function to determine if any partitions on my loopfs are still being used. Shellcheck gives an SC2276 error for this line of code:</p>
  <pre><code>&quot;${ARRAY_PROC_LOOP[index]}&quot;=&quot;$( lsof -e /run/user/1000/gvfs | grep 
  &quot;${ARRAY_LOOPFS[index]}&quot; &amp;&amp; wait )&quot; 2&gt;/dev/null
  </code></pre>
  <p><a href="https://github.com/koalaman/shellcheck/wiki/SC2276" rel="nofollow noreferrer">https://github.com/koalaman/shellcheck/wiki/SC2276</a></p>
  <blockquote>
  <p>This is interpreted as a command name containing '='. <strong>Bad assignment</strong> or comparison?</p>
  </blockquote>