From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on atuin.qyliss.net X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 Received: from atuin.qyliss.net (localhost [IPv6:::1]) by atuin.qyliss.net (Postfix) with ESMTP id 4C89A2DC72; Tue, 15 Nov 2022 10:57:09 +0000 (UTC) Received: by atuin.qyliss.net (Postfix, from userid 496) id 0C4052DC2B; Tue, 15 Nov 2022 10:57:06 +0000 (UTC) Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by atuin.qyliss.net (Postfix) with ESMTPS id 038912DC28 for ; Tue, 15 Nov 2022 10:57:01 +0000 (UTC) Received: by mail-ed1-x541.google.com with SMTP id x102so6081445ede.0 for ; Tue, 15 Nov 2022 02:57:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unikie.com; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bRdphZoyyeFJBl+vxi18Y3AJ/s9a9fm5o4FrLCnU8Jw=; b=BxRdA21lEfjPLBGToCzvtaShJKcbes4YT/b30oS7OHWKb9/xSJbdf2Usj+rDwMo7I5 hIbfp7wLv0lhGe7Px9LIUDxjJYqwfWJa9vqDMYG5yrGJgHCfwVeXI6ergAIdzDbIQcAV g3GMLyGjnLlN6dkQMzC4pGDlCmwhO0P77Dyr9k+Pxcjv3QGRC3xaOPBGNru/9xlMTeVh juK+4UQx9isqMH2xuG4P8IESaXMXuQ1T/BGJALzKeX6uCkhDiu8oLfmX6Ty7aneeVyk2 Wwp8OrgcWMAT2ZVphn3nZOWSVxxOnvxw2XaboOTlAeGKfSnDpuj3/5Ao620Sdp89bTWo hxvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bRdphZoyyeFJBl+vxi18Y3AJ/s9a9fm5o4FrLCnU8Jw=; b=Qi2L7/97e7GSd9wHmSokkDpgsxCmb3oU+ad55D1ZJbuJasHTmhkXP6OXZOyA7PGr7P 1jt3apLGX1QAvT8Fb8JC6L83kp1Yc3v+5fkE2iTFZ1oCHV69ukkFTpaRfZt9Or5esqqQ ITCHx6dqvf+EXgPWhxMGAhua8oGHk3kUPg6dWRU/l435JRSzxBikewzNFBRwPEkYPAse r6ko3CXXeBrWdph4KqxgIAjIpiHj7M4vyFyTnHVxhSh21IY4Y0TSUV7yOdY36CtQx0lY ViW2iLYQECTw/gjPcnVX6mZQe1agnIHWD3xr4kRqTCJBGYckj4FoYFcm7z+JxkbBlZg1 x8gQ== X-Gm-Message-State: ANoB5pl5su2gaG5/75iyMondnur9ktNKxuVXbkjwB19yj/oRlUpi/Nzf zWzXRU5Z/5+s83tW8GMm21dbe1CMH8ZwAnb8 X-Google-Smtp-Source: AA0mqf5cVtQDvP4Fn7JGl/49oqXO82tZi7uWmA8kXEqsrkaURbpB3w/6H84Dzg/4MTVHkeRukdL1/g== X-Received: by 2002:a50:ee01:0:b0:459:dff1:e145 with SMTP id g1-20020a50ee01000000b00459dff1e145mr14827371eds.134.1668509819878; Tue, 15 Nov 2022 02:56:59 -0800 (PST) Received: from x220.qyliss.net ([2a0d:1a40:7a04:1:8914:e155:faf8:6b0e]) by smtp.gmail.com with ESMTPSA id q7-20020a17090676c700b007a97a616f3fsm5300142ejn.196.2022.11.15.02.56.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Nov 2022 02:56:59 -0800 (PST) Received: by x220.qyliss.net (Postfix, from userid 1000) id 3FBB61566F; Tue, 15 Nov 2022 10:56:58 +0000 (UTC) From: Alyssa Ross To: devel@spectrum-os.org Subject: [PATCH 1/2] Documentation/scripts: fix shellcheck issues Date: Tue, 15 Nov 2022 10:56:36 +0000 Message-Id: <20221115105637.298620-1-alyssa.ross@unikie.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: J357DBA3BAWQGYQYZDORN3IYZKEKNA6D X-Message-ID-Hash: J357DBA3BAWQGYQYZDORN3IYZKEKNA6D X-MailFrom: alyssa.ross@unikie.com X-Mailman-Rule-Hits: header-match-devel.spectrum-os.org-0 X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1 CC: Henri Rosten X-Mailman-Version: 3.3.5 Precedence: list List-Id: Patches and low-level development discussion Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: There's an open issue about teaching shellcheck to automatically recognize nix-shell shebangs: https://github.com/koalaman/shellcheck/issues/1210 Signed-off-by: Alyssa Ross --- Documentation/scripts/build.sh | 2 +- Documentation/scripts/update-gems.sh | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/scripts/build.sh b/Documentation/scripts/build.sh index 85bd5a5..e6a2cd8 100755 --- a/Documentation/scripts/build.sh +++ b/Documentation/scripts/build.sh @@ -4,7 +4,7 @@ cd "$(dirname "$0")/.." -if [ ! -w . -a ! -w .jekyll-cache ]; then +if [ ! -w . ] && [ ! -w .jekyll-cache ]; then JEKYLLFLAGS=--disable-disk-cache fi diff --git a/Documentation/scripts/update-gems.sh b/Documentation/scripts/update-gems.sh index 7ba98d8..d70f55f 100755 --- a/Documentation/scripts/update-gems.sh +++ b/Documentation/scripts/update-gems.sh @@ -1,8 +1,11 @@ #! /usr/bin/env nix-shell #! nix-shell -i bash -p bundler bundix + # SPDX-FileCopyrightText: 2022 Unikie # SPDX-License-Identifier: EUPL-1.2+ +# shellcheck shell=bash + set -euo pipefail bundle lock --update -- 2.35.1