mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 07:00:30 +00:00
uefi-capsule: use /bin/sh in grub hook
Use . instead of source as source is a bashism. Use /bin/sh as the interpretter as there are no strict bashisms in the hook. Ideally the shell expansion using `` is changed to $(), but the escaping behaviour is complex and dash/busybox sh both support ``.
This commit is contained in:
parent
1507055849
commit
3147fef735
@ -1,4 +1,4 @@
|
||||
#! /bin/bash
|
||||
#! /bin/sh
|
||||
# SPDX-License-Identifier: LGPL-2.1+
|
||||
set -e
|
||||
|
||||
@ -8,7 +8,7 @@ set -e
|
||||
|
||||
if [ -f @localstatedir@/lib/fwupd/uefi_capsule.conf ] &&
|
||||
ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
|
||||
source @localstatedir@/lib/fwupd/uefi_capsule.conf
|
||||
. @localstatedir@/lib/fwupd/uefi_capsule.conf
|
||||
if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
|
||||
echo "Adding Linux Firmware Updater entry" >&2
|
||||
cat << EOF
|
||||
|
Loading…
Reference in New Issue
Block a user