• [gentoo-dev] [PATCH 2/4] eclass/dotnet-pkg-base.eclass: clarify test, q

    From =?UTF-8?q?Maciej=20Bar=C4=87?=@21:1/5 to All on Thu Oct 5 21:20:01 2023
    Signed-off-by: Maciej Barć <[email protected]>
    ---
    eclass/dotnet-pkg-base.eclass | 12 ++++++------
    1 file changed, 6 insertions(+), 6 deletions(-)

    diff --git a/eclass/dotnet-pkg-base.eclass b/eclass/dotnet-pkg-base.eclass index e2659a829..5b2d6e2dd 100644
    --- a/eclass/dotnet-pkg-base.eclass
    +++ b/eclass/dotnet-pkg-base.eclass
    @@ -371,7 +371,7 @@ dotnet-pkg-base_restore_tools() {
    --add-source "${NUGET_PACKAGES}"
    )

    - if [[ "${1}" ]] ; then
    + if [[ -n "${1}" ]] ; then
    tool_restore_args+=( --configfile "${1}" )
    shift
    fi
    @@ -434,7 +434,7 @@ dotnet-pkg-base_test() {
    debug-print-function "${FUNCNAME[0]}" "${@}"

    local directory
    - if [[ "${1}" ]] ; then
    + if [[ -n "${1}" ]] ; then
    directory="${1}"
    shift
    else
    @@ -529,7 +529,7 @@ dotnet-pkg-base_dolauncher() {

    local executable_path executable_name

    - if [[ "${1}" ]] ; then
    + if [[ -n "${1}" ]] ; then
    local executable_path="${1}"
    shift
    else
    @@ -553,9 +553,9 @@ dotnet-pkg-base_dolauncher() {
    # compatible with dotnet version ${DOTNET_PKG_COM