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