aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-28 13:32:23 +0000
committermerakor <cem@ckyln.com>2020-05-28 13:32:23 +0000
commitd26ad192d01b9b854191e9e6d8b6ac044459c1b4 (patch)
tree88e2e9acb4873d73041c10773f14211459206fb4 /kiss
parent49e9e8e25c39db4f70eabd795d9f8dbcc08983f3 (diff)
downloadcpt-d26ad192d01b9b854191e9e6d8b6ac044459c1b4.tar.gz
kiss: skip git repositories if git isn't installed
FossilOrigin-Name: 06e99b7e8f88a73674bd2c3a0bf7438f9a5f88264236a27d2f3c1677f73181b3
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss6
1 files changed, 6 insertions, 0 deletions
diff --git a/kiss b/kiss
index 1456fbf..6abd32b 100755
--- a/kiss
+++ b/kiss
@@ -1236,6 +1236,12 @@ pkg_fetch() {
if [ -d .git ]; then
+ command -v git >/dev/null || {
+ log "$repo" " "
+ printf '%s\n' "Git is not installed, skipping."
+ continue
+ }
+
[ "$(git remote 2>/dev/null)" ] || {
log "$repo" " "
printf '%s\n' "No remote, skipping."