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 74B44158089 for ; Thu, 5 Oct 2023 19:11:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6AE212BC05B; Thu, 5 Oct 2023 19:11:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.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 3930C2BC037 for ; Thu, 5 Oct 2023 19:11:09 +0000 (UTC) From: =?UTF-8?q?Maciej=20Bar=C4=87?= To: gentoo-dev@lists.gentoo.org Cc: =?UTF-8?q?Maciej=20Bar=C4=87?= Subject: [gentoo-dev] [PATCH 2/4] eclass/dotnet-pkg-base.eclass: clarify test, quotes in dolauncher Date: Thu, 5 Oct 2023 21:10:16 +0200 Message-ID: <20231005191025.12504-2-xgqt@gentoo.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231005191025.12504-1-xgqt@gentoo.org> References: <20231005191025.12504-1-xgqt@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Archives-Salt: 45e8ce7f-c4d7-4bd9-acd3-e1e70c402a5a X-Archives-Hash: 5fe0b7681cee109329e39dcb06f461b7 Signed-off-by: Maciej Barć --- 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_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}" -- 2.41.0