bypassing missing home directory for user when ghostty command exists

This commit is contained in:
pvincent
2026-08-25 18:57:40 +04:00
parent 2e15600996
commit b42f3d3d20
+4
View File
@@ -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