kiss: clean up

This commit is contained in:
Dylan Araps 2019-09-11 09:16:44 +03:00
parent 133bff4efa
commit 9c5dc33de0

3
kiss
View File

@ -148,11 +148,12 @@ pkg_extract() {
|| die "[$1] Couldn't extract ${src##*/}" || die "[$1] Couldn't extract ${src##*/}"
;; ;;
# Local source.
*) *)
# Local file.
if [ -f "$repo_dir/$src" ]; then if [ -f "$repo_dir/$src" ]; then
cp -f "$repo_dir/$src" . cp -f "$repo_dir/$src" .
# Remote file.
elif [ -f "$src_dir/$1/${src##*/}" ]; then elif [ -f "$src_dir/$1/${src##*/}" ]; then
cp -f "$src_dir/$1/${src##*/}" . cp -f "$src_dir/$1/${src##*/}" .