Fixed typo & refactoring

This commit is contained in:
ByteDream 2021-05-20 10:29:28 +02:00 committed by GitHub
parent 30a87878fe
commit abd3ce4763
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,14 +4,14 @@ while getopts ":o:output:" opt; do
case $opt in case $opt in
o | output) o | output)
output=$OPTARG 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 exit 1
;; ;;
esac esac
done done
shift $((OPTIND -1))
if [ -z $output ]; then if [ -z $output ]; then