autoinstall/autostart-manage/systemctl.sh
2024-01-08 23:37:31 +01:00

9 lines
218 B
Bash

#!/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[@]}"