Make all indentation consistent.
[matthijs/upstream/backupninja.git] / handlers / makecd.in
index 1a95d6d5accd22a8113bdc14477cc35e1c7233dc..78e5454dee6d0ed178d91654819b36f49e87985f 100644 (file)
@@ -31,7 +31,7 @@ DVDINFO="/usr/bin/dvd+rw-mediainfo"
 [ -x "$CDRDAO" ]    || debug 3 "echo executable $CDRDAO not present"
 
 if [ "$isoonly" == "no" ]; then
-       [ -e $device ] || fatal "No Burner device available"
+   [ -e $device ] || fatal "No Burner device available"
 fi
 
 outputfile="$backupdir/$imagefile"
@@ -40,7 +40,7 @@ execstr="nice -n $nicelevel $MKISOFS --quiet -R -o $outputfile "
 str=""
 # excludes
 for i in $exclude; do
-       str=" -x ${i}$str"
+   str=" -x ${i}$str"
 done
 
 debug 0 "echo $str "
@@ -50,39 +50,39 @@ debug 0 "echo $execstr "
 output=` $execstr 2>&1 `
 code=$?
 if [ "$code" == "0" ]; then
-       debug $output
-       info "Successfully finished creation of iso"
+   debug $output
+   info "Successfully finished creation of iso"
 else
-       warning $output
-       warning "Failed to create iso"
+   warning $output
+   warning "Failed to create iso"
 fi
 
 if [ "$isoonly" == "no" ]; then
 
-       if [ "$burnertype" == "cd" ]; then 
-               # burning iso to CD
-               $CDRECORD -v gracetime=2 dev=$device speed=8 -dao -data $outputfile 
-               code=$?
-               if [ "$code" == "0" ]; then
-                       debug $output
-                       info "Successfully burned CD"
-               else
-                       warning $output
-                       warning "Failed to create CD"
-               fi
-       fi
-       if [ "$burnertype" == "dvd" ]; then 
-               # burning iso dvd
-               $GROWISOFS -speed=2 -Z $device=$outputfile -use-the-force-luke=notray -use-the-force-luke=tty
-               code=$?
-               if [ "$code" == "0" ]; then
-                       debug $output
-                       info "Successfully burned DVD"
-               else
-                       warning $output
-                       warning "Failed to create DVD"
-               fi
-       fi
+   if [ "$burnertype" == "cd" ]; then
+      # burning iso to CD
+      $CDRECORD -v gracetime=2 dev=$device speed=8 -dao -data $outputfile
+      code=$?
+      if [ "$code" == "0" ]; then
+         debug $output
+         info "Successfully burned CD"
+      else
+         warning $output
+         warning "Failed to create CD"
+      fi
+   fi
+   if [ "$burnertype" == "dvd" ]; then
+      # burning iso dvd
+      $GROWISOFS -speed=2 -Z $device=$outputfile -use-the-force-luke=notray -use-the-force-luke=tty
+      code=$?
+      if [ "$code" == "0" ]; then
+         debug $output
+         info "Successfully burned DVD"
+      else
+         warning $output
+         warning "Failed to create DVD"
+      fi
+   fi
 fi
 return 0