From d869ba215e1a531f19c3231023a3197a362ea63e Mon Sep 17 00:00:00 2001 From: merakor Date: Thu, 28 May 2020 13:27:51 +0000 Subject: kiss: die if git is missing when a package source requires git FossilOrigin-Name: 1b5f55499e2da542cc5cf27c0c75198a99df3f88c521c8e1260ebf5a90e023e1 --- kiss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kiss b/kiss index 1f14a45..e2d3bcf 100755 --- a/kiss +++ b/kiss @@ -233,6 +233,11 @@ pkg_sources() { # This is a checksums check, skip it. [ "$2" ] && continue + # Since git is an optional dependency, make sure + # it is available on the system. + command -v git >/dev/null 2>&1 || + die "git must be installed in order to acquire ${src##git+}" + mkdir -p "$mak_dir/$1/$dest" # Run in a subshell to keep the variables, path and -- cgit v1.2.3