mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
shellcheck fixes
This commit is contained in:
parent
5021200e1f
commit
f867bcb113
2 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ _clean_cache() {
|
|||
if grep -qw 'archboot' /etc/hostname; then
|
||||
echo "Cleaning archboot /var/cache/pacman/pkg ..."
|
||||
for i in "${1}"/var/cache/pacman/pkg/*; do
|
||||
[[ "${i}" == "${1}/var/cache/pacman/pkg/archboot.db" ]] || rm -f /var/cache/pacman/pkg/$(basename "${i}")
|
||||
[[ "${i}" == "${1}/var/cache/pacman/pkg/archboot.db" ]] || rm -f /var/cache/pacman/pkg/"$(basename "${i}")"
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ _prepare_kernel_initramfs_files_RISCV64() {
|
|||
echo "Prepare RISCV64 u-boot ..."
|
||||
#shellcheck disable=SC1090
|
||||
source "${_PRESET}"
|
||||
mkdir -p ${_ISODIR}/boot
|
||||
mkdir -p "${_ISODIR}"/boot
|
||||
install -m644 "${ALL_kver}" "${_ISODIR}/boot/vmlinuz_${_RUNNING_ARCH}"
|
||||
mkinitcpio -c "${MKINITCPIO_CONFIG}" -k "${ALL_kver}" -g "${_ISODIR}/boot/initramfs_${_RUNNING_ARCH}.img" || exit 1
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue