mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: Fix bug when sources has a blank line.
This commit is contained in:
parent
5518845c2d
commit
fd6c5c4507
1
kiss
1
kiss
@ -12,6 +12,7 @@ log() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
source_type() {
|
source_type() {
|
||||||
|
[ -z "$1" ] && return 1 # No file.
|
||||||
[ -f "$1" ] && return 2 # Local file.
|
[ -f "$1" ] && return 2 # Local file.
|
||||||
[ -f "$src_dir/${1##*/}" ] && return 3 # Cached downloaded file.
|
[ -f "$src_dir/${1##*/}" ] && return 3 # Cached downloaded file.
|
||||||
[ -z "${1##git:*}" ] && return 4 # Git repository.
|
[ -z "${1##git:*}" ] && return 4 # Git repository.
|
||||||
|
Loading…
Reference in New Issue
Block a user