cpt

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

commit 104ed34bdca0ce8162835839ba23b44fc951438b
parent 57815ca9e224dd74ecc356f4de3eab0c6809efaf
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Fri, 14 Jun 2019 13:38:19 +0300

docs: Added comments.

Diffstat:
Mkiss | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/kiss b/kiss @@ -3,7 +3,7 @@ # kiss - package manager for kiss linux. die() { - printf '\033[31mERROR>\033[m %s\n' "$@" >&2 + printf '\033[31m!>\033[m %s\n' "$@" >&2 exit 1 } @@ -12,10 +12,10 @@ log() { } source_type() { - [ -f "$1" ] && return 2 - [ -f "$src_dir/${1##*/}" ] && return 3 - [ -z "${1##git:*}" ] && return 4 - [ -z "${1##*://*}" ] && return 5 + [ -f "$1" ] && return 2 # Local file. + [ -f "$src_dir/${1##*/}" ] && return 3 # Cached downloaded file. + [ -z "${1##git:*}" ] && return 4 # Git repository. + [ -z "${1##*://*}" ] && return 5 # Remote file. } pkg_search() {