run shellcheck

This commit is contained in:
Tobias Powalowski 2022-05-03 21:31:09 +02:00
parent 1cc06135c0
commit 77be0a9584
2 changed files with 3 additions and 1 deletions

View file

@ -58,7 +58,7 @@ _prepare_kernel_initramfs_files() {
split -b 700M -d --additional-suffix=.img -a 1 \
"${_ISODIR}/boot/initramfs_${_RUNNING_ARCH}-pre.img" "${_ISODIR}/boot/initramfs_${_RUNNING_ARCH}-"
rm "${_ISODIR}/boot/initramfs_${_RUNNING_ARCH}-pre.img"
if [[ "$(find "${_ISODIR}/boot" -name *.img | wc -l)" -lt "2" ]]; then
if [[ "$(find "${_ISODIR}/boot" -name '*.img' | wc -l)" -lt "2" ]]; then
mv "${_ISODIR}/boot/initramfs_${_RUNNING_ARCH}-0.img" "${_ISODIR}/boot/initramfs_${_RUNNING_ARCH}.img"
fi
mv "/usr/lib/initcpio/functions.old" "/usr/lib/initcpio/functions"

View file

@ -237,11 +237,13 @@ _launch_xfce() {
echo "Install packages ..."
_INSTALL_SOURCE="file:///var/cache/pacman/pkg"
_create_pacman_conf
#shellcheck disable=SC2086
pacman -Sy ${X_PACKAGES} --config ${_PACMAN_CONF} --noconfirm || exit 1
else
echo "Updating environment ..."
pacman -Syu --ignore linux --ignore linux-firmware || exit 1
echo "Install packages ..."
#shellcheck disable=SC2086
pacman -Sy ${X_PACKAGES} --noconfirm || exit 1
fi
echo "Cleanup archboot environment ..."