chore: add files from base_repo template
This commit is contained in:
parent
5e8a72a714
commit
fd44bd54a5
13 changed files with 151 additions and 31 deletions
30
.devfiles/scripts/dependecy-check.sh
Executable file
30
.devfiles/scripts/dependecy-check.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
root="$(git rev-parse --show-toplevel)"
|
||||
|
||||
export PATH=$root/.devfiles/bin:$root/.devfiles/scripts:$PATH
|
||||
|
||||
devtools=(
|
||||
age
|
||||
agebox
|
||||
cog
|
||||
gitleaks
|
||||
)
|
||||
|
||||
missing_tools=()
|
||||
|
||||
for cmd in "${devtools[@]}"; do
|
||||
if ! command -v "$cmd" &>/dev/null; then
|
||||
missing_tools+=("$cmd")
|
||||
fi
|
||||
done
|
||||
|
||||
if [[ ${#missing_tools[@]} != 0 ]]; then
|
||||
echo "The following tools where not found:"
|
||||
printf "%s\n" "${missing_tools[@]}"
|
||||
exit 1
|
||||
else
|
||||
echo -e "All tools are installed!"
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue