Useful shell functions for shared usage, e.g. in docker entrypoints
cd /opt/
sudo git clone https://github.com/datalyze-solutions/shlibs
sudo ln -s /opt/shlibs /usr/local/bin
Simply import index.sh
to import all shlibs functions.
source /usr/local/bin/shlibs/index.sh
If you change shlibs functions, you need to import index.sh with the --reload
flag. This will deregister the functions before resourcing them.
source /usr/local/bin/shlibs/index.sh --reload