cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 75123427339429a911d6554ce996baf8470a15cb
parent 5e00dedb09ab55225facfc78c1f82f2969666744
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 28 May 2020 16:32:24 +0300

kiss: skip git repositories if git isn't installed

Diffstat:
Mkiss | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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."