aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPascal Dulieu <pascal@dulieu.uk>2019-03-07 15:12:09 +0000
committerPascal Dulieu <pascal@dulieu.uk>2019-03-07 15:12:09 +0000
commitdc69af5714cf88b2bb71a6c22e5040d649d49154 (patch)
treee69645e6ae1fc85b34a93cd05280ec7040adc398
parentaad4d72c080baa800ce01117d13c83a5fadc69da (diff)
Update ripdisc
-rw-r--r--ripdisc39
1 files changed, 19 insertions, 20 deletions
diff --git a/ripdisc b/ripdisc
index b5b23d3..4ca28e9 100644
--- a/ripdisc
+++ b/ripdisc
@@ -3,26 +3,25 @@ echo "Press Ctrl+C to stop the script"
eject
while :
do
-echo "Please insert disc"
-disc=2
-while [[ $disc != 0 ]]
-do
-
-sudo blkid /dev/sr0 >> /dev/null
-disc=$?
-sleep 5
-
-done
-
-name=$(sudo blkid /dev/sr0 | cut -d= -f3 | cut -d'"' -f2)
-output=$(echo $name | sed -e 's/ /_/g')
-echo "Disc Found: $name"
-echo "Outputting to: $output.iso"
+ echo "Please insert disc"
+ disc=2
+
+ while [[ $disc != 0 ]]
+ do
+ sudo blkid /dev/sr0 >> /dev/null
+ disc=$?
+ sleep 5
+ done
+
+ name=$(sudo blkid /dev/sr0 | cut -d= -f3 | cut -d'"' -f2)
+ output=$(echo $name | sed -e 's/ /_/g')
+ echo "Disc Found: $name"
+ echo "Outputting to: $output.iso"
-# Set save path here
-dd if=/dev/sr0 | pv | dd of=~/ISOs/$output.iso
+ # Set save path here
+ dd if=/dev/sr0 | pv | dd of=~/ISOs/$output.iso
-echo "Finished! Insert your next disc"
-eject
-sleep 10
+ echo "Finished! Insert your next disc"
+ eject
+ sleep 10
done