This commit is contained in:
parent
c472cf02b7
commit
5e1490b760
|
@ -12,7 +12,7 @@ IS_TIMER=false
|
||||||
IS_ALLOWED_DISABLED=false
|
IS_ALLOWED_DISABLED=false
|
||||||
|
|
||||||
# Parse command line arguments
|
# Parse command line arguments
|
||||||
while getopts "u:t:d" opt; do
|
while getopts "u:td" opt; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
u )
|
u )
|
||||||
UNIT_NAME=$OPTARG
|
UNIT_NAME=$OPTARG
|
||||||
|
@ -35,7 +35,6 @@ while getopts "u:t:d" opt; do
|
||||||
done
|
done
|
||||||
shift $((OPTIND -1))
|
shift $((OPTIND -1))
|
||||||
|
|
||||||
# Check if UNIT name is provided
|
|
||||||
if [ -z "$UNIT_NAME" ]; then
|
if [ -z "$UNIT_NAME" ]; then
|
||||||
echo "Missing unit name."
|
echo "Missing unit name."
|
||||||
usage
|
usage
|
||||||
|
|
Loading…
Reference in New Issue