You should probably use the shebang (that first line on the file, which tells the operating system how to execute the file) as
#!/usr/bin/env bash
This way, anyone who uses your script but for some reason stores their preferred version of bash somewhere else, can still run it with their preferred version.
You should probably use the shebang (that first line on the file, which tells the operating system how to execute the file) as
This way, anyone who uses your script but for some reason stores their preferred version of bash somewhere else, can still run it with their preferred version.