#!/usr/bin/env bash systemctl_args=("$action") if [[ $action == "enable" ]]; then systemctl_args=("add-wants" "autostart.target") fi #shellcheck disable=SC2068 _systemctl "${args[program]:?}" "${systemctl_args[@]}"