update for broken post_install
See https://forum.manjaro.org/t/manjaro-refind-theme/127875
Here an updated version:
post_install() {
# get refind location
refindconf=$(find /boot -name refind.conf | head -1)
if test -n "$refindconf"; then
# copy the theme to the right location
cp -r /usr/share/refind/refind-theme-maia "$(dirname "$refindconf")"
# enable the theme
grep -q "include refind-theme-maia/theme.conf" "$refindconf" || \
echo "include refind-theme-maia/theme.conf" >> "$refindconf"
else
echo -e "Refind is not installed.
Install it with refind-install and enable the theme by adding
'include refind-theme-maia/theme.conf' to refind.conf"
fi
}