diff options
author | merakor <cem@ckyln.com> | 2020-05-28 13:32:23 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-28 13:32:23 +0000 |
commit | d26ad192d01b9b854191e9e6d8b6ac044459c1b4 (patch) | |
tree | 88e2e9acb4873d73041c10773f14211459206fb4 | |
parent | 49e9e8e25c39db4f70eabd795d9f8dbcc08983f3 (diff) | |
download | cpt-d26ad192d01b9b854191e9e6d8b6ac044459c1b4.tar.gz |
kiss: skip git repositories if git isn't installed
FossilOrigin-Name: 06e99b7e8f88a73674bd2c3a0bf7438f9a5f88264236a27d2f3c1677f73181b3
-rwxr-xr-x | kiss | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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." |