aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-17 14:28:36 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-06-17 14:28:36 +0000
commit1ae6616b0a4ea32c4e43f0abcc2a4153d7d6b4e7 (patch)
tree7af9695a9631411a2aa5845c54d76d9339059b22 /kiss
parent9fc5e6be0469b8b08b6e6b00fef56d0f0f076d04 (diff)
downloadcpt-1ae6616b0a4ea32c4e43f0abcc2a4153d7d6b4e7.tar.gz
kiss: Fix bug when sources has a blank line.
FossilOrigin-Name: c708631f8a85d400e3966545c031605b21986ff4da3ddc95abf8b184ff0cbdae
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss1
1 files changed, 1 insertions, 0 deletions
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.