diff --git a/dort.sh b/dort.sh index a9514a7..385d28e 100755 --- a/dort.sh +++ b/dort.sh @@ -217,10 +217,19 @@ apply_profiles() { systemctl disable --user "${systemd_user_disable[@]}" fi if ((${#systemd_wants[@]} != 0)); then - sudo systemctl add-wants "${systemd_wants[@]}" + for unit in "${systemd_wants[@]}"; do + read -r -a unit_split <<<"$unit" + sudo systemctl add-wants "${unit_split[0]}" "${unit_split[1]}" + unset unit_split + done fi if ((${#systemd_user_wants[@]} != 0)); then - systemctl add-wants --user "${systemd_user_wants[@]}" + for unit in "${systemd_user_wants[@]}"; do + read -r -a unit_split <<<"$unit" + systemctl add-wants --user "${unit_split[0]}" "${unit_split[1]}" + unset unit_split + done + fi for run_cmd in "${run_lines[@]}"; do diff --git a/dort.yaml b/dort.yaml index 4879631..b08638f 100644 --- a/dort.yaml +++ b/dort.yaml @@ -1,6 +1,6 @@ version: 1 dort: - aur: paru + aur: yay stow: true stow_force: true configs: