aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss11
1 files changed, 8 insertions, 3 deletions
diff --git a/kiss b/kiss
index c5e38e9..11acaa8 100755
--- a/kiss
+++ b/kiss
@@ -204,10 +204,15 @@ pkg_extract() {
# Local files (Any source that is non-remote is assumed to be local).
*)
- [ -f "$repo_dir/$src" ] ||
- die "[$1]: Local file $src not found."
+ if [ -f "$repo_dir/$src" ]; then
+ cp -f "$repo_dir/$src" "./$dest"
+
+ elif [ -f "$src_dir/$1/${src##*/}" ]; then
+ cp -f "$src_dir/$1/${src##*/}" "./$dest"
- cp -f "$repo_dir/$src" "./$dest"
+ else
+ die "[$1]: Local file $src not found."
+ fi
;;
esac
done < "$repo_dir/sources"