X-Original-To: alpine-devel@lists.alpinelinux.org Received: from sender-pp-092.zoho.com (sender-pp-092.zoho.com [135.84.80.237]) by lists.alpinelinux.org (Postfix) with ESMTP id 5EDC35C4DEE for ; Mon, 20 Nov 2017 13:09:43 +0000 (GMT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=zapps768; d=zoho.com; h=from:to:cc:subject:date:message-id; b=jpZ4cRY3izSp8yqu3X3a/rkp+7k274rRvhdGZj9RErmZCPyVs6YU3vu9hCsV/Gc+FA06Vb20mI4G 1Wnb5YgKbEu3uPhnZXEsXFk9r8/Bmog9bfeMFV3J4Oi1zzYIYP6d Received: from localhost (89-76-36-159.dynamic.chello.pl [89.76.36.159]) by mx.zohomail.com with SMTPS id 1511183379547367.97506098880297; Mon, 20 Nov 2017 05:09:39 -0800 (PST) From: Przemyslaw Pawelczyk To: ncopa@alpinelinux.org Cc: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH] mkinitfs.in: Fix typo leading to "sh: missing ]" error. Date: Mon, 20 Nov 2017 14:09:34 +0100 Message-Id: <20171120130934.11235-1-przemoc@zoho.com> X-Mailer: git-send-email 2.13.5 X-ZohoMailClient: External X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Reported-by: Duncan on #alpine-linux Also negate test result instead of negating expression within test. It's better to minimize test "extra" features usage. XSI extensions specifying the -a and -o binary primaries and the '(' and ')' operators have been marked obsolescent as there are clearer shell equivalents. Negation (!) is not marked obsolescent (at least yet), but shell usage is preferred. --- I think it should be applied in aports too, stable included. mkinitfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkinitfs.in b/mkinitfs.in index 0cd5d30b274c..596ae7b753e4 100755 --- a/mkinitfs.in +++ b/mkinitfs.in @@ -233,7 +233,7 @@ if [ -z "$outfile" ]; then outfile="${basedir}boot/initramfs-${kflavor}" fi -if [ -z "$nokernel"] && [ ! -d "$kerneldir" ]; then +if [ -z "$nokernel" ] && ! [ -d "$kerneldir" ]; then echo "$kerneldir does not exist or is not a directory" exit 1 fi -- 2.13.5 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---