42free
42free copied to clipboard
Note down all dependencies and minimum versions required for the script
Find out all dependencies and what versions are required to support the features needed by the script. Then check for all of them at startup.
For example, the mapfile builtin and associative arrays only were introduced to bash in version 4.0.