This commit is contained in:
parent
2260f43f59
commit
c472cf02b7
|
@ -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,6 +37,7 @@ shift $((OPTIND -1))
|
|||
|
||||
# Check if UNIT name is provided
|
||||
if [ -z "$UNIT_NAME" ]; then
|
||||
echo "Missing unit name."
|
||||
usage
|
||||
exit -1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue