Update merge-pdf.sh

This commit is contained in:
ByteDream 2021-05-20 12:57:22 +02:00 committed by GitHub
parent 2a093ade68
commit a012a61203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@ while getopts ":o:" 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 allowed)" echo "Unsupported argument was given (only '-o' is allowed)"
@ -12,6 +11,7 @@ while getopts ":o:" opt; do
;; ;;
esac esac
done done
shift $((OPTIND -1))
if [ -z $output ]; then if [ -z $output ]; then