mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 23:12:45 +00:00
abuild: fix bug in install script detection
This commit is contained in:
parent
9947fdfafa
commit
f5a3a48da0
@ -553,6 +553,7 @@ EOF
|
||||
if [ "$pkgname" != "busybox" ] && ! depends_has busbox; then
|
||||
for i in $install $triggers; do
|
||||
local s=${i%=*}
|
||||
[ "$name" != "${s%.*}" ] && continue
|
||||
if head -n 1 "$startdir/$s" | grep '^#!/bin/sh' >/dev/null ; then
|
||||
msg "Script found. busybox added as a dependency for $pkg"
|
||||
deps="$deps busybox"
|
||||
@ -600,7 +601,7 @@ EOF
|
||||
for i in $install $triggers; do
|
||||
local f=${i%=*}
|
||||
local n=${f%.*}
|
||||
if [ "$n" != "$pkgname" ]; then
|
||||
if [ "$n" != "$name" ]; then
|
||||
continue
|
||||
fi
|
||||
script=${f#$name}
|
||||
|
Loading…
Reference in New Issue
Block a user