From 56e4c861bd0f82db236d5393c4a7a2786bfbfd94 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 1 Feb 2015 09:09:38 +0100 Subject: [PATCH] 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." --- common/hooks/post-install/04-create-xbps-metadata-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh index 48855cd98c6..dca0081d479 100644 --- a/common/hooks/post-install/04-create-xbps-metadata-scripts.sh +++ b/common/hooks/post-install/04-create-xbps-metadata-scripts.sh @@ -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=