aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-18 19:31:52 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-18 19:31:52 +0000
commitc953bedff4ab30dec92b13dff37caed4accd48e2 (patch)
treebe7448419f78caf686c6b315fcc602ecbd9ffaa9 /kiss
parent0c817867f914de3ea5ab51de21f2637b7c965a2a (diff)
downloadcpt-c953bedff4ab30dec92b13dff37caed4accd48e2.tar.gz
kiss: sources comment support
FossilOrigin-Name: 85d9b06bc785620a005994b65497435e40617285d84c41f3c0a2749813550819
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss6
1 files changed, 5 insertions, 1 deletions
diff --git a/kiss b/kiss
index bbc42b4..4714a88 100755
--- a/kiss
+++ b/kiss
@@ -660,8 +660,12 @@ pkg_checksums() {
repo_dir=$(pkg_find "$1")
while read -r src _ || [ "$src" ]; do
+ # Comment.
+ if [ -z "${src##\#*}" ]; then
+ continue
+
# File is local to the package.
- if [ -f "$repo_dir/$src" ]; then
+ elif [ -f "$repo_dir/$src" ]; then
src_path=$repo_dir/${src%/*}
# File is remote and was downloaded.