Skip to content

🚀 libbash 🤖

ci tests task

A collection of common bash libraries.

🚀  TL;DR

💾  Installation

From the script directory
git submodule add https://github.com/nicholaswilde/libbash
From the script directory
git clone https://github.com/nicholaswilde/libbash.git

⚙  Usage

myscript.sh
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

# shellcheck source=/dev/null
source "${DIR}/libbash/init"
source "${LIBBASH_DIR}/str"

lb_to_upper_all foo

⬆  Update

From the base dir with libbash submodule installed.

git submodule update --init --recursive --remote

💡  Inspiration

Inspiration for this repository has been taken from cyberark/bash-lib and dylanaraps/pure-bash-bible.

⚖ ​License

Apache 2.0 License

📝 ​Author

​This project was started in 2022 by Nicholas Wilde.