diff options
author | merakor <cem@ckyln.com> | 2020-05-28 13:27:51 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-28 13:27:51 +0000 |
commit | d869ba215e1a531f19c3231023a3197a362ea63e (patch) | |
tree | 4350c62a3f0b993acb798c3f3fdfbfa22b639bea /kiss | |
parent | d313bb7e484f686042780a62bdb0ff10795548e0 (diff) | |
download | cpt-d869ba215e1a531f19c3231023a3197a362ea63e.tar.gz |
kiss: die if git is missing when a package source requires git
FossilOrigin-Name: 1b5f55499e2da542cc5cf27c0c75198a99df3f88c521c8e1260ebf5a90e023e1
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |