Fixed input parameters
This commit is contained in:
@@ -7,8 +7,8 @@ if [[ ${PIPESTATUS[0]} -ne 4 ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OPTIONS=dtlhus
|
OPTIONS=d:t:l:h:u:s:
|
||||||
LONGOPTS=device,timezone,locale,hostname,username,sudogrp,help
|
LONGOPTS=device:,timezone:,locale:,hostname:,username:,sudogrp:,help
|
||||||
|
|
||||||
! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")
|
! PARSED=$(getopt --options=$OPTIONS --longoptions=$LONGOPTS --name "$0" -- "$@")
|
||||||
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
|
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user