Comparing #!/usr/bin/bash and #!/usr/bin/env bash in Shell Scripts
When writing a Bash script, the shebang (#!) at the top of the file determines how the system locates the interpreter for your script. Two popular choices for a Bash script are: #!/usr/bin/bash and #!/usr/bin/env bash