From 892f6de9e99570f5c6ccea4170f5404d15e99348 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 12 Sep 2020 11:25:05 +0300 Subject: [PATCH] kiss: cleanup --- kiss | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kiss b/kiss index d36a285..bd0004c 100755 --- a/kiss +++ b/kiss @@ -209,15 +209,12 @@ pkg_sources() { mkdir -p "$src_dir/$1" && cd "$src_dir/$1" while read -r src dest || [ "$src" ]; do - # Remote git repository or comment. if [ -z "${src##\#*}" ] || [ -z "${src##git+*}" ]; then - : + continue - # Remote source (cached). elif [ -f "${src##*/}" ]; then log "$1" "Found cached source '${src##*/}'" - # Remote source. elif [ -z "${src##*://*}" ]; then log "$1" "Downloading $src" @@ -226,11 +223,9 @@ pkg_sources() { die "$1" "Failed to download $src" } - # Local source (relative). elif [ -e "$repo_dir/$src" ]; then log "$1" "Found local relative source '$src'" - # Local source (absolute). elif [ -e "/$src" ]; then log "$1" "Found local absolute source '$src'"