aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-14 10:38:18 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-14 10:38:18 +0000
commit2392fdf0a967a2ff75c584e6b5ee4ebe7f6e1d0d (patch)
treeb0cbe0da9f90941e02fa9335d1d99da161979b36 /kiss
parentf74545cd4120f94b212d00d89b27ec0a34d6f95b (diff)
downloadcpt-2392fdf0a967a2ff75c584e6b5ee4ebe7f6e1d0d.tar.gz
docs: Added comments.
FossilOrigin-Name: c9c5ca87566f4f97b3e6224013868c8d087fb8b4fa94d67f19631ff9f0a599d3
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss10
1 files changed, 5 insertions, 5 deletions
diff --git a/kiss b/kiss
index c2d6352..69906b8 100755
--- 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() {