Browse Source

bypassing missing home directory for user when ghostty command exists

main
pvincent 2 weeks ago
parent
commit
b42f3d3d20
  1. 4
      lib/initiate.bash

4
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

Loading…
Cancel
Save