mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add update logger w/ analysis
This commit is contained in:
18
bin/omarchy-update-analyze-logs
Executable file
18
bin/omarchy-update-analyze-logs
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user