forked from kiss-community/kiss
kiss: clean up
This commit is contained in:
parent
133bff4efa
commit
9c5dc33de0
3
kiss
3
kiss
@ -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##*/}" .
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user