aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-28 13:27:51 +0000
committermerakor <cem@ckyln.com>2020-05-28 13:27:51 +0000
commitd869ba215e1a531f19c3231023a3197a362ea63e (patch)
tree4350c62a3f0b993acb798c3f3fdfbfa22b639bea
parentd313bb7e484f686042780a62bdb0ff10795548e0 (diff)
downloadcpt-d869ba215e1a531f19c3231023a3197a362ea63e.tar.gz
kiss: die if git is missing when a package source requires git
FossilOrigin-Name: 1b5f55499e2da542cc5cf27c0c75198a99df3f88c521c8e1260ebf5a90e023e1
-rwxr-xr-xkiss5
1 files changed, 5 insertions, 0 deletions
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