diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-18 11:36:18 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-18 11:36:18 +0000 |
commit | 06c878c3b1ed6425657b9973f977802aaefab616 (patch) | |
tree | 0381cb3a07fb8bba4385f78f2c554c5efc9244a5 | |
parent | 884f21f398ddaa5518d4126991c5a2471332d687 (diff) | |
download | pkgsrc-06c878c3b1ed6425657b9973f977802aaefab616.tar.gz |
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
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/pkg-build | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/pkg-build b/pkgtools/pbulk/files/pbulk/scripts/pkg-build index 2b7ca32b7e2..46aabd4032a 100755 --- a/pkgtools/pbulk/files/pbulk/scripts/pkg-build +++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-build @@ -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 |