19 May
2013
19 May
'13
12:22 a.m.
On 19/05/13 01:37, Dave Reisner wrote:
On May 18, 2013 10:10 AM, "Allan McRae" <allan@archlinux.org> wrote:
Signed-off-by: Allan McRae <allan@archlinux.org> --- scripts/makepkg.sh.in | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index c311c30..8b222da 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -2095,6 +2095,10 @@ install_package() { fi }
+has_function() { + return $(declare -f $1 >/dev/null)
Quotes on $1 please.
+}
If this works, its only by chance. Just call declare and the return value will work itself out.
Would also prefer have_ instead of has_ but that's a minor point.
All fixed on my working branch. Allan