From bea1a0a1d0ce2bb3cfaf3441bcc91e2e02017017 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 23 Nov 2014 14:24:10 -0200 Subject: Mass-ripper: iteration parameter --- mass-ripper | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mass-ripper b/mass-ripper index 934b3df..0e7ceec 100755 --- a/mass-ripper +++ b/mass-ripper @@ -6,7 +6,7 @@ # Parameters BASENAME="`basename $0`" DRIVE="$1" -ITERATION="1" +ITERATION="$2" INFO="0" MOUNT="/media/cdrom" @@ -15,6 +15,11 @@ if [ -z "$DRIVE" ]; then DRIVE="/dev/sr0" fi +# Iteration +if [ -z "$ITERATION" ]; then + ITERATION="1" +fi + # Set sudo config if [ "`whoami`" != 'root' ]; then sudo="sudo" -- cgit v1.2.3