Skip to content

Commit

Permalink
fixme : detect kernesl and initramfs with spaces
Browse files Browse the repository at this point in the history
fixme : detect kernel and initramfs with spaces
  • Loading branch information
Antynea committed Aug 30, 2015
1 parent b925f63 commit d598529
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions 41_snapshots-btrfs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ detect_kernel()
done

## Custom name kernel in GRUB_BTRFS_NKERNEL
if [ ! -z ${nkernel} ] ; then
if [ ! -z "${nkernel}" ] ; then
for ckernel in "${nkernel[@]}" ; do
[[ ! -f /"$(boot_dir)/${ckernel}" ]] && continue;
[[ ! -f /"$(boot_dir)"/"${ckernel}" ]] && continue;
list_kernel+=("$ckernel")
done
fi
Expand All @@ -174,10 +174,10 @@ detect_initramfs()
done

## Custom name initramfs in GRUB_BTRFS_NINIT
if [ ! -z ${ninit} ] ; then
if [ ! -z "$ninit" ] ; then
for cinitramfs in "${ninit[@]}" ; do
[[ ! -f "/$(boot_dir)/${ninit}" ]] && continue;
list_initramfs+=("$ninit")
[[ ! -f /"$(boot_dir)"/"${cinitramfs}" ]] && continue;
list_initramfs+=("$cinitramfs")
done
fi
}
Expand Down

0 comments on commit d598529

Please sign in to comment.