app-office/libreoffice-voikko: ebuild enhancements
authorJoonas Niilola <juippis@gentoo.org>
Wed, 8 Jan 2020 12:39:00 +0000 (14:39 +0200)
committerJoonas Niilola <juippis@gentoo.org>
Wed, 8 Jan 2020 12:52:06 +0000 (14:52 +0200)
Closes: https://bugs.gentoo.org/704974
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
app-office/libreoffice-voikko/libreoffice-voikko-5.0.ebuild

index 7d9eece935c9272b8edbc16a4879c465961715db..4dfc323f80ee92d437d1ee0e12caae69462d1b4f 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -35,17 +35,17 @@ pkg_postinst() {
 
        einfo "Trying to register ${COMPONENT} ..."
        unopkg add --shared "${COMPONENT}"
-       if [[ $? == 0 ]] ; then
+       if [[ ${?} == 0 ]] ; then
                einfo "${PN} registered succesfully with LibreOffice."
        else
-               eerror "Couldnt register ${PN} with LibreOffice."
+               eerror "Couldn't register ${PN} with LibreOffice."
        fi
 }
 
 pkg_prerm() {
        # Remove voikko registration from libreoffice
        unopkg remove --shared org.puimula.ooovoikko
-       if [[ $? == 0 ]] ; then
+       if [[ ${?} == 0 ]] ; then
                einfo "${PN} removed succesfully from LibreOffice."
        else
                eerror "Couldn't remove ${PN} from LibreOffice, "