#!/bin/bash or #!/usr/bin/env sh
One hardcodes the interpreter path, the other asks PATH to find it. Which one a script should have depends on whether it needs Bash features.
One hardcodes the interpreter path, the other asks PATH to find it. Which one a script should have depends on whether it needs Bash features.