Fix opensuse not updating grub and copying typo
Created by: n3oxmind
I could not make a pull request for some reason it says permission denied.
I tried to install the them on my opensuse machine and got few errors and fixed them. here is what I have changed:
fixed updating grub for opensuse
# Update grub config
prompt -i "\n Updating grub config..."
if has_command update-grub; then
update-grub
elif has_command grub-mkconfig; then
grub-mkconfig -o /boot/grub/grub.cfg
elif has_command grub2-mkconfig; then
if [ $(which zypper &>/dev/null) ]; then
grub2-mkconfig -o /boot/grub2/grub.cfg
else
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
fi
fi
copying typo which breaks the script
check the last else statment under 'Copy theme' section it got the astresik inside the double quote
before: cp -a "${REO_DIR}/assets/assets-white/select/*".png "${THEME_DIR_2}/${name}"
after : cp -a "${REO_DIR}/assets/assets-white/select/"*.png "${THEME_DIR_2}/${name}"