From b42f3d3d20d5dfe064ca1e902649b57cbde76c73 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 25 Aug 2026 18:57:40 +0400 Subject: [PATCH] bypassing missing home directory for user when ghostty command exists --- lib/initiate.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/initiate.bash b/lib/initiate.bash index 974769a..66464e5 100644 --- a/lib/initiate.bash +++ b/lib/initiate.bash @@ -174,6 +174,10 @@ function ghostty_global_config { build_associative_user_homes for user in "${!USER_HOMES[@]}"; do local user_home="${USER_HOMES[$user]}" + if [[ ! -d "$user_home" ]]; then + >&2 echo "WARNING: home directory: $user_home missing for user: $user! bypassing..." + continue + fi local user_ghostty_config="$user_home"/.config/ghostty/config.ghostty if [[ ! -f "$user_ghostty_config" ]]; then sudo -u "$user" -- mkdir -p "$user_home"/.config/ghostty