kiss: Fix bug when sources has a blank line.

This commit is contained in:
Dylan Araps 2019-06-17 17:28:37 +03:00
parent 5518845c2d
commit fd6c5c4507
1 changed files with 1 additions and 0 deletions

1
kiss
View File

@ -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.