summaryrefslogtreecommitdiff
path: root/resources/scripts/blobs/inject
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/blobs/inject')
-rwxr-xr-xresources/scripts/blobs/inject7
1 files changed, 3 insertions, 4 deletions
diff --git a/resources/scripts/blobs/inject b/resources/scripts/blobs/inject
index ca8aae4c..51f67255 100755
--- a/resources/scripts/blobs/inject
+++ b/resources/scripts/blobs/inject
@@ -1,7 +1,6 @@
-#!/usr/bin/env sh
+#!/usr/bin/env bash
# SPDX-FileCopyrightText: 2022 Caleb La Grange <thonkpeasant@protonmail.com>
-# SPDX-FileCopyrightText: 2022 Ferass El Hafidi <vitali64pmemail@protonmail.com>
# SPDX-FileCopyrightText: 2023 Leah Rowe <info@minifree.org>
# SPDX-License-Identifier: GPL-3.0-only
@@ -112,10 +111,10 @@ detect_board()
filename=$(basename ${path})
case ${filename} in
grub_*)
- board=$(echo "${filename}" | cut -d '_' -f2-3)
+ board=$(cut -d '_' -f2-3 <<<${filename})
;;
seabios_withgrub_*)
- board=$(echo "${filename}" | cut -d '_' -f3-4)
+ board=$(cut -d '_' -f3-4 <<<${filename})
;;
*.tar.xz)
_stripped_prefix=${filename#*_}