Commit f5a3a48d authored by Natanael Copa's avatar Natanael Copa

abuild: fix bug in install script detection

parent 9947fdfa
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment