hooks/do-extract: refrain from extracting text files outside wrksrc
This commit is contained in:
parent
3063767c4f
commit
e06efd6bbb
1 changed files with 5 additions and 1 deletions
|
@ -128,7 +128,11 @@ hook() {
|
|||
fi
|
||||
;;
|
||||
txt)
|
||||
cp -f $srcdir/$curfile $extractdir
|
||||
if [ "$create_wrksrc" ]; then
|
||||
cp -f $srcdir/$curfile $extractdir
|
||||
else
|
||||
msg_error "$pkgname: ${curfile##*.} files can only be extracted when create_wrksrc is set\n"
|
||||
fi
|
||||
;;
|
||||
7z)
|
||||
if command -v 7z &>/dev/null; then
|
||||
|
|
Loading…
Reference in a new issue