Fixed the definition of shell functions, as reported in PR 37795.
See also: http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_05 http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_09_04
This commit is contained in:
parent
884f21f398
commit
06c878c3b1
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
#!@SH@
|
||||
# $NetBSD: pkg-build,v 1.9 2008/01/17 17:47:09 joerg Exp $
|
||||
# $NetBSD: pkg-build,v 1.10 2008/01/18 11:36:18 rillig Exp $
|
||||
#
|
||||
# Copyright (c) 2007, 2008 Joerg Sonnenberger <joerg@NetBSD.org>.
|
||||
# All rights reserved.
|
||||
|
@ -43,8 +43,8 @@ cleanup() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
run_direct() "$@"
|
||||
run_su() su ${unprivileged_user} -c '"$@"' make "$@"
|
||||
run_direct() { "$@"; }
|
||||
run_su() { su ${unprivileged_user} -c '"$@"' make "$@"; }
|
||||
|
||||
run_make() {
|
||||
local run_cmd
|
||||
|
|
Loading…
Reference in a new issue