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 { function usage {
echo "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 -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" -d A service is allowed to not be enabled"
} }
@ -37,8 +37,9 @@ shift $((OPTIND -1))
# Check if UNIT name is provided # Check if UNIT name is provided
if [ -z "$UNIT_NAME" ]; then if [ -z "$UNIT_NAME" ]; then
usage echo "Missing unit name."
exit -1 usage
exit -1
fi fi
# Check if the unit is enabled # Check if the unit is enabled