From 1ae6616b0a4ea32c4e43f0abcc2a4153d7d6b4e7 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Mon, 17 Jun 2019 14:28:36 +0000 Subject: kiss: Fix bug when sources has a blank line. FossilOrigin-Name: c708631f8a85d400e3966545c031605b21986ff4da3ddc95abf8b184ff0cbdae --- kiss | 1 + 1 file changed, 1 insertion(+) (limited to 'kiss') diff --git a/kiss b/kiss index d2c2bbd..8cca5e5 100755 --- a/kiss +++ b/kiss @@ -12,6 +12,7 @@ log() { } source_type() { + [ -z "$1" ] && return 1 # No file. [ -f "$1" ] && return 2 # Local file. [ -f "$src_dir/${1##*/}" ] && return 3 # Cached downloaded file. [ -z "${1##git:*}" ] && return 4 # Git repository. -- cgit v1.2.3