Add omarchy-doctor

This commit is contained in:
Ryan Hughes
2025-09-28 00:41:37 -04:00
parent 0b172dbef1
commit 57a977a51d
40 changed files with 1032 additions and 356 deletions

View File

@@ -118,8 +118,15 @@ run_logged() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] Starting: $script" >>"$OMARCHY_INSTALL_LOG_FILE"
# Use bash -c to create a clean subshell
bash -c "source '$script'" </dev/null >>"$OMARCHY_INSTALL_LOG_FILE" 2>&1
(
# Source the script
source "$script"
# Check if omarchy_install function exists and run it, otherwise the script already ran
if declare -f omarchy_install >/dev/null 2>&1; then
omarchy_install
fi
) </dev/null >>"$OMARCHY_INSTALL_LOG_FILE" 2>&1
local exit_code=$?