mirror of
https://github.com/bytedream/scripts.git
synced 2025-05-09 12:15:12 +02:00
Fixed typo & refactoring
This commit is contained in:
parent
30a87878fe
commit
abd3ce4763
@ -4,14 +4,14 @@ while getopts ":o:output:" opt; do
|
||||
case $opt in
|
||||
o | output)
|
||||
output=$OPTARG
|
||||
shift $((OPTIND -1))
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported argument was given (only '-o' is allowd)"
|
||||
echo "Unsupported argument was given (only '-o' is allowed)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
done
|
||||
shift $((OPTIND -1))
|
||||
|
||||
|
||||
if [ -z $output ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user