Fixed input parameters

This commit is contained in:
TuDatTr
2020-05-23 19:14:09 +02:00
parent ce547085f7
commit 42a992a8c4

View File

@@ -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