kiss: handle null repositories

This commit is contained in:
Dylan Araps 2021-07-02 12:19:23 +00:00
parent dcb890e240
commit c4cd821456
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

3
kiss
View File

@ -1345,6 +1345,9 @@ pkg_updates() {
# Update each repository in '$KISS_PATH'.
for repo do
# Handle null repositories (KISS_PATH=repo:::::repo).
[ "$repo" ] || continue
[ -d "$repo" ] || {
log "$repo" " "
printf 'Skipping repository, not a directory\n'