tdf#105204: ShellCheck nitpicks for install-gdb-printers
Change-Id: I4d9a9f52d72b789d60e541193fa06dbfb8236ead SC2155: Declare and assign separately to avoid masking return values. Reviewed-on: https://gerrit.libreoffice.org/37551 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
This commit is contained in:
parent
46a30d5eb8
commit
6c5ba69262
1 changed files with 2 additions and 1 deletions
|
@ -55,7 +55,8 @@ make_autoload() {
|
|||
local lib="${DESTDIR}${autoloaddir}/$2/$3"
|
||||
local merged="$4"
|
||||
|
||||
local resolved="$(readlink "${DESTDIR}${installdir}/$2/$3")"
|
||||
local resolved;
|
||||
resolved=$(readlink "${DESTDIR}${installdir}/$2/$3")
|
||||
[ -n "$resolved" ] && lib=$resolved
|
||||
local dir="${lib%/*}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue