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/blobs/inject | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'resources/scripts/blobs/inject') diff --git a/resources/scripts/blobs/inject b/resources/scripts/blobs/inject index 92fdd628..d74b147a 100755 --- a/resources/scripts/blobs/inject +++ b/resources/scripts/blobs/inject @@ -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 Fail(){ @@ -53,10 +54,10 @@ Detect_board(){ filename=$(basename ${rom}) case ${filename} in grub_*) - board=$(cut -d '_' -f2-3 <<<${filename}) + board=$(echo "${filename}" | cut -d '_' -f2-3) ;; seabios_withgrub_*) - board=$(cut -d '_' -f3-4 <<<${filename}) + board=$(echo "${filename}" | cut -d '_' -f3-4) ;; *) return 1 -- cgit v1.2.1