bypassing missing home directory for user when ghostty command exists
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user