This commit is contained in:
Valeria Fadeeva 2023-10-18 13:34:10 +05:00
parent 7c0a5c6280
commit cdcee6db6e
1 changed files with 5 additions and 7 deletions

View File

@ -17,8 +17,6 @@ if [[ ${#} -eq 0 ]]; then
usage usage
fi fi
declare -a ukify_global_args=()
ESP_PATH=$(bootctl --print-esp-path) ESP_PATH=$(bootctl --print-esp-path)
if [ -z "$ESP_PATH" ]; then if [ -z "$ESP_PATH" ]; then
exit 1 exit 1
@ -81,15 +79,15 @@ while getopts ":hag:xyz" arg; do
initrd_image_fallback="$BOOT_PATH/initramfs-$kernel_name-fallback.img" initrd_image_fallback="$BOOT_PATH/initramfs-$kernel_name-fallback.img"
declare -a images=() declare -a images=()
images+=($kernel_image) images+=("$kernel_image")
images+=($initrd_image) images+=("$initrd_image")
images+=($initrd_image_fallback) images+=("$initrd_image_fallback")
for image in "${images[@]}"; for image in "${images[@]}";
do do
if [ -f ]; then if [ -f "$image" ]; then
echo "==> Removing $image..." echo "==> Removing $image..."
rm -f $image rm -f "$image"
fi fi
done done
fi fi