From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YIdZKIo1418DJgAA0tVLHw (envelope-from ) for ; Wed, 23 Dec 2020 12:18:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2L4mJIo141/PAwAAbx9fmQ (envelope-from ) for ; Wed, 23 Dec 2020 12:18:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 50C86940430 for ; Wed, 23 Dec 2020 12:18:18 +0000 (UTC) Received: from localhost ([::1]:60390 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ks35t-0003K2-8M for larch@yhetil.org; Wed, 23 Dec 2020 07:18:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ks35e-0003Jt-Oj for guix-patches@gnu.org; Wed, 23 Dec 2020 07:18:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40743) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ks35e-0007MY-GX for guix-patches@gnu.org; Wed, 23 Dec 2020 07:18:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ks35e-0002Zc-CZ for guix-patches@gnu.org; Wed, 23 Dec 2020 07:18:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#40601] [PATCH 2/5] guix-install.sh: Remove $UID bashism. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 23 Dec 2020 12:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40601 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Vincent Legoll Received: via spool by 40601-submit@debbugs.gnu.org id=B40601.16087258729847 (code B ref 40601); Wed, 23 Dec 2020 12:18:02 +0000 Received: (at 40601) by debbugs.gnu.org; 23 Dec 2020 12:17:52 +0000 Received: from localhost ([127.0.0.1]:52289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ks35U-0002Yl-9S for submit@debbugs.gnu.org; Wed, 23 Dec 2020 07:17:52 -0500 Received: from mira.cbaines.net ([212.71.252.8]:53126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ks35R-0002Yd-Uy for 40601@debbugs.gnu.org; Wed, 23 Dec 2020 07:17:51 -0500 Received: from localhost (188.29.98.108.threembb.co.uk [188.29.98.108]) by mira.cbaines.net (Postfix) with ESMTPSA id 1E13A27BC05; Wed, 23 Dec 2020 12:17:49 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id f822405b; Wed, 23 Dec 2020 12:17:46 +0000 (UTC) References: <20201220172839.3059-1-vincent.legoll@gmail.com> <20201220172839.3059-2-vincent.legoll@gmail.com> User-agent: mu4e 1.4.13; emacs 27.1 From: Christopher Baines In-reply-to: <20201220172839.3059-2-vincent.legoll@gmail.com> Date: Wed, 23 Dec 2020 12:17:46 +0000 Message-ID: <874kkcbtsl.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 40601@debbugs.gnu.org Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.93 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 50C86940430 X-Spam-Score: -0.93 X-Migadu-Scanner: scn0.migadu.com X-TUID: a2NlSDbwy6we --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Vincent Legoll writes: > * etc/guix-install.sh: Use `id -u' instead of $UID. > --- > etc/guix-install.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/etc/guix-install.sh b/etc/guix-install.sh > index 26c8622855..0102901010 100755 > --- a/etc/guix-install.sh > +++ b/etc/guix-install.sh > @@ -32,7 +32,7 @@ fi >=20=20 > set -e >=20=20 > -[ "$UID" -eq 0 ] || { echo "This script must be run as root."; exit 1; } > +[ "$(id -u)" -eq 0 ] || { echo "This script must be run as root."; exit = 1; } >=20=20 > REQUIRE=3D( > "dirname" Should id be added as a requirement? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAl/jNWpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xff4RAAqMyideqviA2RZITw4HRcGRDGDYzNwgaz fQZNWWSrg2GLUNxAqyfeHOZm0gLwPYje9EH8KcNAVG5+NPj9QqDXcAdY2mEftqdV IlxnZ+guZpWw7BccYseCqsGHb4Ns0wACkKP1lFKrX/fQsjQZoyFJEPJKimkggblY 7dKsJ9T7PI4DKJDQDv4zZgLM8BiqtjPrc1FMKxR8v5SJ3hRGp1jf8RwobIFl9zqf i0/Zpm+9nchZPuBcBhpVF00O4Jode1x2A1a0kNUGDF6hNSeM6HmtoePLqyGOWxIk SSN2YxSHEkppKLGMWVOm4KKBZyDWAxvpVLkU6aLHMWAt2IhBR9RJabMDeAtwyt/M nDAc7UypGCzx5fH3mR5Y3CosWji50Dsa+c1tr2cmfEu3AMeR+UEsymJkpp4lLUDV 7qEYXOAcNQLYszvCG3iqrPgUNVXi1vDa4fTp2slqPY4VLYL7xosE6NRmESIX8Fyc WCZBJFzuTzY05EbW/WQIXU+KM12e8bt/nHmpamZd/I4An9Qo5bWHZOoH+8+Wn3d+ GAvnxQo/JQ/11+IgfRpOeypNhM7wuiPzsn1hOKJ0Hge3ekGMXZPTaRWwpzQ0lywT wPdQiP6ftm1hEMtgKNGnfnNpjSssA6aobTmOJKDdT94IPWTcqOXOcIDb4PDZnPZX LzmESX8/Qwc= =yZax -----END PGP SIGNATURE----- --=-=-=--