diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-11-07 15:38:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-11-07 15:39:35 +0000 |
commit | d8cfcd5dc9aeeace440e1826a157e68a28ef2fac (patch) | |
tree | 40d88338da47dc5f4450686c61553d9f4b6823b6 | |
parent | 6d321050e53f030609844493165a4a18bdabfa41 (diff) | |
download | abuild-d8cfcd5dc9aeeace440e1826a157e68a28ef2fac.tar.bz2 abuild-d8cfcd5dc9aeeace440e1826a157e68a28ef2fac.tar.xz |
abuild: detect /bin/sh dependency even if shebang has spaces
fixes !7
-rw-r--r-- | abuild.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1004,7 +1004,7 @@ prepare_metafiles() { for i in $install $triggers; do local s=${i%=*} [ "$name" != "${s%.*}" ] && continue - if head -n 1 "$startdir/$s" | grep '^#!/bin/sh' >/dev/null ; then + if head -n 1 "$startdir/$s" | grep -E '^#!\s*/bin/sh' >/dev/null ; then msg "Script found. /bin/sh added as a dependency for $pkg" deps="$deps /bin/sh" break |