autoinstall/autostart-manage/systemctl.sh

10 lines
218 B
Bash
Raw Normal View History

2024-01-08 22:37:31 +00:00
#!/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[@]}"