This commit is contained in:
Cyberes 2024-03-29 10:25:16 -06:00
parent 2260f43f59
commit c472cf02b7
1 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@
function usage {
echo "Usage:
-u [UNIT name]
-u [UNIT name] (required)
-t Service is triggered by a timer or is a oneshot service. Is allowed to be inactive
-d A service is allowed to not be enabled"
}
@ -37,8 +37,9 @@ shift $((OPTIND -1))
# Check if UNIT name is provided
if [ -z "$UNIT_NAME" ]; then
usage
exit -1
echo "Missing unit name."
usage
exit -1
fi
# Check if the unit is enabled