[Libreoffice-commits] core.git: solenv/bin

Yeliz Taneroğlu yeliztaneroglu at gmail.com
Sat May 20 09:44:05 UTC 2017


 solenv/bin/install-gdb-printers |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 6c5ba692627791ba8a7f412ee965f89487be06d5
Author: Yeliz Taneroğlu <yeliztaneroglu at gmail.com>
Date:   Fri May 12 20:04:01 2017 +0300

    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 at libreoffice.org>
    Reviewed-by: Chris Sherlock <chris.sherlock79 at gmail.com>
    Tested-by: Chris Sherlock <chris.sherlock79 at gmail.com>

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


More information about the Libreoffice-commits mailing list