From 912ba916546e537ee3cb1d18de72c52da19e60fc Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 17 Jul 2021 15:01:53 +0300 Subject: [PATCH] kiss: don't resolve comments/blank lines --- kiss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kiss b/kiss index be5c2ee..3f50b06 100755 --- a/kiss +++ b/kiss @@ -293,6 +293,8 @@ pkg_cache() { pkg_source_resolve() { # Given a line of input from the sources file, return an absolute # path to the source if it already exists, error if not. + [ "${2##\#*}" ] || { _res=; return; } + fnr "${2%"${2##*[!/]}"}" \ VERSION "$repo_ver" \ RELEASE "$repo_rel" \ @@ -304,12 +306,8 @@ pkg_source_resolve() { set -- "$1" "$_fnr" "${3%"${3##*[!/]}"}" "$4" - if [ -z "${2##\#*}" ]; then - _res= - return - # Git repository. - elif [ -z "${2##git+*}" ]; then + if [ -z "${2##git+*}" ]; then _res=$2 # Remote source (cached).