From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 4KfDLGhywV66awAA0tVLHw (envelope-from ) for ; Sun, 17 May 2020 17:20:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iL6pKGhywV6hfgAA1q6Kng (envelope-from ) for ; Sun, 17 May 2020 17:20:40 +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 59184940B0D for ; Sun, 17 May 2020 17:20:40 +0000 (UTC) Received: from localhost ([::1]:46378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jaMxr-0002S6-Ba for larch@yhetil.org; Sun, 17 May 2020 13:20:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jaMwT-0008Sv-QR for guix-patches@gnu.org; Sun, 17 May 2020 13:19:13 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jaMwT-0004OK-Bt for guix-patches@gnu.org; Sun, 17 May 2020 13:19:13 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jaMwT-0007Bu-8R for guix-patches@gnu.org; Sun, 17 May 2020 13:19:13 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40601] [PATCH 23/28] Remove $UID bashism Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 May 2020 17:19:13 +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: 40601@debbugs.gnu.org Cc: Vincent Legoll Received: via spool by 40601-submit@debbugs.gnu.org id=B40601.158973592327456 (code B ref 40601); Sun, 17 May 2020 17:19:13 +0000 Received: (at 40601) by debbugs.gnu.org; 17 May 2020 17:18:43 +0000 Received: from localhost ([127.0.0.1]:44618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMvy-00078k-Tf for submit@debbugs.gnu.org; Sun, 17 May 2020 13:18:43 -0400 Received: from mail-wr1-f50.google.com ([209.85.221.50]:41187) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jaMvQ-00073P-34 for 40601@debbugs.gnu.org; Sun, 17 May 2020 13:18:08 -0400 Received: by mail-wr1-f50.google.com with SMTP id h17so9066392wrc.8 for <40601@debbugs.gnu.org>; Sun, 17 May 2020 10:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RyxDZBU1WmOsP3F8XEyL3f93+gRXFiQ4O1C3yn3UdlE=; b=ohjG28yTHHFQI0FitsIOeM0fEsXlWw39IGSG8b/u4xA/awvVpUF24209cd9bDCUbrH 9IcamPAMGqESXx1C8GU6GPGiESMzXys0l95JJZifw+fkWOS095cPYWIyjy5nJ68b02U4 NfGzntuM/MNenYMEBW+akyVgy8HsmMQ2aDkt5ufFNBnO9WPmwb8wY2tCebRPWaQVfyen 3Mh2bh1res7TOHWBCbeQhoBkkLwWQILyUMjKcB21uS463x9L0HtmwnO07Ivz/tG62frb JmPstYA9KsP8W/emOaPnadrH8G8kRujbi8BwaEDvo+leMgp6/vJ5Ee6cZrwkhUnTFNun cZSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RyxDZBU1WmOsP3F8XEyL3f93+gRXFiQ4O1C3yn3UdlE=; b=jQbezNKQvdMLMmU1moE+jVRnxp1bUnQ7es3COUiZ610zCuLkqGQaK5reQhe6dARKK+ gjN5rAV8eqFgZRBfW+H8wC+2Eak9RoWHHBbApATodHszqATrDSjIhw+GazV2hfQJMRxb Bo0AnfLs9x3YxLcznij+ygmyYMykDLR5BiQGN8qtIGvCLCpEnuhnEnrLyXpVvI3AyvFV FEn1wP6H3OL5tI9IJgTaj918wv6xx5MHLEMEy6ChzYJbIvTLkIQ/IsSKKWmJQKwRbDSB UkgYB2cOr4mU1vKRmsZMyxW3FrOBgGstk3F435JT54D6LUkPAM6QHbgJzdp/k8ZIqAbn UOjw== X-Gm-Message-State: AOAM533xvBG0C+SW/9rp8hpff741wAUbmghD63YWQlMBBp9L6DXcGBgF y0I5JpjUmYwU2J7G36MD1uJgaXpy X-Google-Smtp-Source: ABdhPJyhLey+sPZJYSN7Qp0nlAubhT50kP7KSX+8lPuSvbRm7Y92iBCcRNfQP12kMD+fkBaN+Fx1JQ== X-Received: by 2002:adf:e388:: with SMTP id e8mr14978947wrm.174.1589735882305; Sun, 17 May 2020 10:18:02 -0700 (PDT) Received: from localhost.localdomain (se167-1-82-242-148-1.fbx.proxad.net. [82.242.148.1]) by smtp.gmail.com with ESMTPSA id v126sm13305048wma.9.2020.05.17.10.18.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 May 2020 10:18:01 -0700 (PDT) From: Vincent Legoll Date: Sun, 17 May 2020 19:17:20 +0200 Message-Id: <20200517171725.732-23-vincent.legoll@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200517171725.732-1-vincent.legoll@gmail.com> References: <20200517171725.732-1-vincent.legoll@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -1.0 (-) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=ohjG28yT; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Spam-Score: 5.09 X-TUID: Sf0Ql1Gb067y --- 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 c7144288c9..431790709a 100755 --- a/etc/guix-install.sh +++ b/etc/guix-install.sh @@ -30,7 +30,7 @@ fi set -e -[ "$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; } # groupadd, useradd, usermod, adduser, addgroup are handled in: # sys_create_build_user & sys_create_build_group functions. -- 2.26.2