summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorYeliz Taneroğlu <yeliztaneroglu@gmail.com>2017-05-12 20:04:01 +0300
committerChris Sherlock <chris.sherlock79@gmail.com>2017-05-20 11:43:44 +0200
commit6c5ba692627791ba8a7f412ee965f89487be06d5 (patch)
tree3257fdd5e86c49bd560d9650495916056edd8caf /solenv
parent46a30d5eb89a7198f30a895ac92ab5d70d111511 (diff)
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>
Diffstat (limited to 'solenv')
-rwxr-xr-xsolenv/bin/install-gdb-printers3
1 files changed, 2 insertions, 1 deletions
diff --git a/solenv/bin/install-gdb-printers b/solenv/bin/install-gdb-printers
index 4d5be9247087..aae4020a4532 100755
--- a/solenv/bin/install-gdb-printers
+++ b/solenv/bin/install-gdb-printers
@@ -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%/*}"