Skip to content
Compare
Choose a tag to compare
@Chemaclass Chemaclass released this 05 Oct 21:51
· 1 commit to main since this release
3282754

Initial release

  • bashdep::setup
  • bashdep::install

Demo

#!/bin/bash
# Make sure the dependency manager is installed
if [ ! -f lib/bashdep ]; then
  [[ ! -d "lib" ]] && mkdir -p "lib"
  curl -s -L -o lib/bashdep \
    https://github.com/Chemaclass/bashdep/releases/download/0.1/bashdep
  chmod +x lib/bashdep
fi

DEPENDENCIES=(
  "https://github.com/TypedDevs/bashunit/releases/download/0.17.0/bashunit"
  "https://github.com/Chemaclass/create-pr/releases/download/0.6/create-pr"
  "https://github.com/Chemaclass/bash-dumper/releases/download/0.1/dumper.sh@dev"
)

source lib/bashdep
bashdep::setup dir="lib" dev-dir="src/dev" silent=false
bashdep::install "${DEPENDENCIES[@]}"

Full Changelog: https://github.com/Chemaclass/bashdep/commits/0.1