From 1b4196c4e1276a62bd15e579f18b70dd224bdbc7 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 18 Feb 2020 21:31:53 +0200 Subject: [PATCH] kiss: sources comment support --- kiss | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.