-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use bashdep on install-dependencies.sh
- Loading branch information
1 parent
2358ecd
commit d6ef974
Showing
3 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,17 @@ | ||
#!/bin/bash | ||
|
||
## bashunit | ||
curl -s https://bashunit.typeddevs.com/install.sh | bash -s lib beta | ||
# Ensure bashdep is installed | ||
[ ! -f lib/bashdep ] && { | ||
mkdir -p lib | ||
curl -sLo lib/bashdep https://github.com/Chemaclass/bashdep/releases/download/0.1/bashdep | ||
chmod +x lib/bashdep | ||
} | ||
|
||
DEPENDENCIES=( | ||
"https://github.com/TypedDevs/bashunit/releases/download/0.18.0/bashunit" | ||
"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[@]}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters