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:
Yeliz Taneroğlu 2017-05-12 20:04:01 +03:00 committed by Chris Sherlock
parent 46a30d5eb8
commit 6c5ba69262

View file

@ -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%/*}"