From b21d22964f86dcbf536ae7844408c5cea03b45fe Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 28 Jul 2021 10:13:08 +0300 Subject: [PATCH] kiss: unset variables early --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index 9f28398..3f29127 100755 --- a/kiss +++ b/kiss @@ -336,9 +336,9 @@ 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. - ok "${2##\#*}" || { unset _res _des; return; } + unset _res _des _fnr - unset _des + ok "${2##\#*}" || return 0 # Surround each replacement with substitutions to handled escaped markers. # First substitution turns '\MARKER' into ' ' (can't appear in sources as