diff options
author | Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com> | 2022-12-28 19:29:18 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2022-12-28 18:43:49 +0000 |
commit | 7f5dfebf7d37c56d9c7993aaa17c59070cb5aec9 (patch) | |
tree | 74c6c01c2d2cc557f7d119bdf8ed4c8875027d72 /resources/scripts/download/gitmodule | |
parent | f787044642236917c9c4dbcaa48a6b0648097db0 (diff) |
Do not rely on bashisms and behaviour undefined by the POSIX specification. Part 2
Signed-off-by: Ferass 'Vitali64' EL HAFIDI <vitali64pmemail@protonmail.com>
Diffstat (limited to 'resources/scripts/download/gitmodule')
-rwxr-xr-x | resources/scripts/download/gitmodule | 8 |
1 files changed, 5 insertions, 3 deletions
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 <thonkpeasant@protonmail.com> +# SPDX-FileCopyrightText: 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com> # 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") |