From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAD2A15814C for ; Thu, 12 Oct 2023 15:52:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DC2232BC017; Thu, 12 Oct 2023 15:52:34 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C0CDE2BC017 for ; Thu, 12 Oct 2023 15:52:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EDBAA335C2A for ; Thu, 12 Oct 2023 15:52:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 579FA10A2 for ; Thu, 12 Oct 2023 15:52:32 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1697125947.dbceb10a20c60ebea3dfce9062932cbc22526741.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/ X-VCS-Repository: repo/gentoo X-VCS-Files: eclass/dotnet-pkg-base.eclass X-VCS-Directories: eclass/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: dbceb10a20c60ebea3dfce9062932cbc22526741 X-VCS-Branch: master Date: Thu, 12 Oct 2023 15:52:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c9995d2f-d5e7-4c0e-a788-550d7c0fdbb9 X-Archives-Hash: f505432d65fa55be19ae546e84d3c172 commit: dbceb10a20c60ebea3dfce9062932cbc22526741 Author: Maciej Barć gentoo org> AuthorDate: Thu Oct 5 19:10:16 2023 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Oct 12 15:52:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbceb10a eclass/dotnet-pkg-base.eclass: clarify test, quotes in dolauncher Signed-off-by: Maciej Barć gentoo.org> 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 e2659a829e19..5b2d6e2dd2c1 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_COMPAT}. for __dotnet_root in \\ - ${EPREFIX}/usr/$(get_libdir)/dotnet-sdk-${DOTNET_PKG_COMPAT} \\ - ${EPREFIX}/opt/dotnet-sdk-bin-${DOTNET_PKG_COMPAT} ; do - [ -d \${__dotnet_root} ] && break + "${EPREFIX}/usr/$(get_libdir)/dotnet-sdk-${DOTNET_PKG_COMPAT}" \\ + "${EPREFIX}/opt/dotnet-sdk-bin-${DOTNET_PKG_COMPAT}" ; do + [ -d "\${__dotnet_root}" ] && break done DOTNET_ROOT="\${__dotnet_root}"