hooks/do-extract: refrain from extracting text files outside wrksrc

This commit is contained in:
Piotr Wójcik 2020-02-11 22:51:33 +01:00 committed by Piotr
parent 3063767c4f
commit e06efd6bbb

View file

@ -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