diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2017-08-08 14:34:13 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2017-08-08 14:34:13 +0300 |
commit | a7f6049d1097b202d21beb59145b121bf10db370 (patch) | |
tree | 52bb7d1eb87dbc47d8ae7e477d2eb7055c97adfd /scripts | |
parent | bcc9c417ae989ffda193083807142171c7a0190f (diff) |
makepnd-v2makepnd
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/makepkg.sh.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 20e9dd7e..7c1c50a3 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -418,7 +418,12 @@ run_function_safe() { restoretrap=$(trap -p ERR) trap "error_function '$1'" ERR - run_function "$1" + # prefer pnd_ prefixed function if PKGEXT == .pnd + if [[ "$PKGEXT" == *.pnd ]] && declare -F "pnd_$1" > /dev/null; then + run_function "pnd_$1" + else + run_function "$1" + fi eval "$restoretrap" eval "$restoreset" |