mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
19 lines
508 B
Bash
Executable File
19 lines
508 B
Bash
Executable File
#!/bin/bash
|
|
|
|
update_log="/tmp/omarchy-update.log"
|
|
|
|
# Check for errors
|
|
if grep -qi "error" "$update_log"; then
|
|
echo -e "\e[31mNon-stopping errors detected during update:\e[0m"
|
|
grep -i "error" "$update_log"
|
|
echo
|
|
fi
|
|
|
|
# Check for initramfs generation failure
|
|
if grep -q "Updating linux initcpios" "$update_log"; then
|
|
if ! grep -q "Initcpio image generation successful" "$update_log"; then
|
|
echo -e '\e[31mError: Initramfs generation may have failed. Review logs before restart.\e[0m'
|
|
echo
|
|
fi
|
|
fi
|