forked from kiss-community/repo
puke: cleanup
This commit is contained in:
parent
5ab9303bb3
commit
7b19795d13
15
puke
15
puke
@ -85,16 +85,13 @@ pkg_extract() {
|
||||
while read -r src; do
|
||||
source_type "$src"
|
||||
|
||||
case $? in
|
||||
2) cp -f "$src" "$mak_dir" ;;
|
||||
4) ;;
|
||||
case $?-$src in
|
||||
2-*) cp -f "$src" "$mak_dir" ;;
|
||||
4-*) ;;
|
||||
|
||||
3) case $src in
|
||||
*.tar|*.tar.??|*.tar.???|*.tar.????|*.tgz)
|
||||
tar xf "$src_dir/${src##*/}" -C "$mak_dir" \
|
||||
--strip-components 1 ||
|
||||
die "Couldn't extract ${src##*/}"
|
||||
esac ;;
|
||||
3-*.tar*)
|
||||
tar xf "$src_dir/${src##*/}" -C "$mak_dir" --strip-components 1 ||
|
||||
die "Couldn't extract ${src##*/}" ;;
|
||||
|
||||
*) die "${src##*/} not found."
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user