Skip to content

Commit 0c43ca2

Browse files
installkernel: make shellcheck happy
Signed-off-by: Andrew Ammerlaan <[email protected]>
1 parent 5c1b961 commit 0c43ca2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

installkernel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ if [ "${INSTALLKERNEL_LAYOUT}" = efistub ]; then
156156
if [ ${#} -le 3 ] || [ "${4}" = "/boot" ]; then
157157
# Relocate to ESP
158158
for candidate in /boot/EFI /boot/efi /boot /efi; do
159-
if [ -d ${candidate}/EFI/${NAME} ]; then
159+
if [ -d "${candidate}/EFI/${NAME}" ]; then
160160
dir=${candidate}/EFI/${NAME}
161161
suffix=.efi
162162
else
@@ -209,17 +209,17 @@ if [ -f "${uki}" ] && [ "${INSTALLKERNEL_LAYOUT}" = uki ]; then
209209
if [ ${#} -le 3 ] || [ "${4}" = "/boot" ]; then
210210
# Relocate to ESP
211211
for candidate in /boot/EFI /boot/efi /boot /efi; do
212-
if [ -d ${candidate}/EFI/Linux ]; then
212+
if [ -d "${candidate}/EFI/Linux" ]; then
213213
dir=${candidate}/EFI/Linux
214214
img_dest=${ID}
215215
else
216216
continue
217217
fi
218218
done
219219
fi
220-
updatever ${img_dest} "${uki}" ${suffix}
220+
updatever "${img_dest}" "${uki}" "${suffix}"
221221
else
222-
updatever ${img_dest} "${img}" ${suffix}
222+
updatever "${img_dest}" "${img}" "${suffix}"
223223
if [ -f "${initrd}" ]; then
224224
updatever initramfs "${initrd}" .img
225225
fi

0 commit comments

Comments
 (0)