From 11ffaed448519d03a27492ce86acaf771d0a003a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 16 Sep 2014 00:28:20 +0400 Subject: [PATCH] Do not shift an empty list of arguments --- cdr-dvdrw-tools/cdrkit/dvdrec-data | 6 ++++-- cdr-dvdrw-tools/dvd+rw-tools/dvdrec-data | 6 ++++-- cdr-dvdrw-tools/dvdrw-boot | 2 +- cdr-dvdrw-tools/mk-image | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/cdr-dvdrw-tools/cdrkit/dvdrec-data b/cdr-dvdrw-tools/cdrkit/dvdrec-data index 550ca4f..388e09e 100755 --- a/cdr-dvdrw-tools/cdrkit/dvdrec-data +++ b/cdr-dvdrw-tools/cdrkit/dvdrec-data @@ -4,8 +4,10 @@ . .config -label="$1" -shift +if [ -n "$label" ]; then + label="$1" + shift +fi if [ -z "$label" ]; then label="`guess_label.py`" diff --git a/cdr-dvdrw-tools/dvd+rw-tools/dvdrec-data b/cdr-dvdrw-tools/dvd+rw-tools/dvdrec-data index dc3f541..4b45cd1 100755 --- a/cdr-dvdrw-tools/dvd+rw-tools/dvdrec-data +++ b/cdr-dvdrw-tools/dvd+rw-tools/dvdrec-data @@ -4,8 +4,10 @@ . .config -label="$1" -shift +if [ -n "$label" ]; then + label="$1" + shift +fi if [ -z "$label" ]; then label="`guess_label.py`" diff --git a/cdr-dvdrw-tools/dvdrw-boot b/cdr-dvdrw-tools/dvdrw-boot index ab7eee0..3c9e662 100755 --- a/cdr-dvdrw-tools/dvdrw-boot +++ b/cdr-dvdrw-tools/dvdrw-boot @@ -15,8 +15,8 @@ if [ -z "$1" ]; then read boot_img else boot_img="$1" + shift fi -shift alt_boot='' if [ "$@" ]; then diff --git a/cdr-dvdrw-tools/mk-image b/cdr-dvdrw-tools/mk-image index ae2a6fc..51670ab 100755 --- a/cdr-dvdrw-tools/mk-image +++ b/cdr-dvdrw-tools/mk-image @@ -11,8 +11,8 @@ if [ -z "$1" ]; then read label else label="$1" + shift fi -shift exec genisoimage \ -- 2.39.5