SC2155: Declare and assign separately to avoid masking return values.
In the original code, the return value of mycmd is ignored, and export will instead always return true. This may prevent conditionals, set -e and traps from working correctly. PR: 227109 Submitted by: mat Sponsored by: Absolight
This commit is contained in:
parent
ccbfedd88c
commit
473030b0ea
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471273
1 changed files with 2 additions and 1 deletions
|
@ -276,7 +276,8 @@ conserve_old_patches() {
|
|||
}
|
||||
|
||||
install_regenerated_patches() {
|
||||
local testdir=$(find ${DESTDIR} -empty)
|
||||
local testdir
|
||||
testdir=$(find ${DESTDIR} -empty)
|
||||
if [ -z "${testdir}" ]; then
|
||||
mkdir -p ${PATCHDIR}
|
||||
find ${DESTDIR} -type f -exec mv {} ${PATCHDIR}/ \;
|
||||
|
|
Loading…
Reference in a new issue