Skip to content

Commit 9b3a538

Browse files
authored
main.bash: introduce and check own tool dependencies
Fixings #207
1 parent 5b7e3e2 commit 9b3a538

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/main.bash

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ source "$(dirname "${BASH_SOURCE[0]}")/util.bash"
66
# shellcheck source=lib/logging.bash
77
source "$(dirname "${BASH_SOURCE[0]}")/logging.bash"
88

9+
10+
RSTAR_DEPS_BIN+=(
11+
git
12+
)
13+
914
main() {
1015
[[ -z $1 ]] && usage && exit 2
1116

@@ -297,4 +302,6 @@ discover_system_os() {
297302
fi
298303
}
299304

305+
depcheck_bin || exit 305 # check my own tool dependencies first
306+
300307
main "$@"

0 commit comments

Comments
 (0)