From 7f5dfebf7d37c56d9c7993aaa17c59070cb5aec9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferass=20=27Vitali64=27=20EL=C2=A0HAFIDI?= Date: Wed, 28 Dec 2022 19:29:18 +0100 Subject: Do not rely on bashisms and behaviour undefined by the POSIX specification. Part 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferass 'Vitali64' EL HAFIDI --- resources/scripts/download/gitmodule | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'resources/scripts/download/gitmodule') diff --git a/resources/scripts/download/gitmodule b/resources/scripts/download/gitmodule index 1879fac0..603961e4 100755 --- a/resources/scripts/download/gitmodule +++ b/resources/scripts/download/gitmodule @@ -1,6 +1,7 @@ -#!/usr/bin/env bash +#!/usr/bin/env sh # SPDX-FileCopyrightText: 2022 Caleb La Grange +# SPDX-FileCopyrightText: 2022 Ferass El Hafidi # SPDX-License-Identifier: GPL-3.0-only Print_help(){ @@ -72,8 +73,9 @@ while read -r line ; do bkup_url=${2} ;; esac -done <<< $(eval "awk ' /\{.*${name}.*}{/ {flag=1;next} /\}/{flag=0} flag { print }' resources/git/revisions") - +done << EOF +$(eval "awk ' /\{.*${name}.*}{/ {flag=1;next} /\}/{flag=0} flag { print }' resources/git/revisions") +EOF Check_vars tmp_dir=$(mktemp -dt "${name}_XXXXX") -- cgit v1.2.1