hooks/create-xbps-metadata-scripts: fix mktemp assignation.

When set -o ERR is set the exit case wasn't executed. From the bash
manual page:

"The ERR trap is not executed if the
failed command is part of the command list immediately following
a while or until keyword, part of the test in an if statement,
part of a command executed in a && or || list except the command
following the final && or ||, any command in a pipeline but the
last, or if the command's return value is being inverted using
!.  These are the same conditions obeyed by the errexit (-e)
option."
This commit is contained in:
Juan RP 2015-02-01 09:09:38 +01:00
parent 4254ae06f8
commit 56e4c861bd
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ _add_trigger() {
process_metadata_scripts() {
local action="$1"
local action_file="$2"
local tmpf=$(mktemp -t xbps-install.XXXXXXXXXX) || exit 1
local tmpf=$(mktemp)
local fpattern="s|${PKGDESTDIR}||g;s|^\./$||g;/^$/d"
local targets= f= _f= info_files= home= shell= descr= groups=
local found= triggers_found= _icondirs= _schemas= _mods= _tmpfiles=