After creating the file ./_generic_installer.sh
with the _generic_installer.sh
snippet contents bellow, change/tweak it as you would like.
Then, you can run/use it like the following, i.e., by importing/sourcing it and calling its convenience functions.
You can see all confience functions by calling the help command. Just see the first usage example sample output.
test.sh