ddsect.sh: small cleanups master
authorAntonio Ospite <ao2@ao2.it>
Sat, 28 Jun 2014 09:24:37 +0000 (11:24 +0200)
committerAntonio Ospite <ao2@ao2.it>
Sat, 28 Jun 2014 09:24:37 +0000 (11:24 +0200)
ddsect.sh

index 1a27e5f..a11a1ec 100755 (executable)
--- a/ddsect.sh
+++ b/ddsect.sh
@@ -52,7 +52,7 @@ print_map_info()
 
   (
   echo "NAME START_ADDRESS END_ADDRESS SIZE SIZE_KiB"
-  parse_map_file $1
+  parse_map_file $MAP_FILE
   ) | column -s " ," -t
 }
 
@@ -67,7 +67,6 @@ split_image()
   do
     echo_exec dd ibs=1 skip=$START_ADDRESS count=$SIZE if="$IMAGE_FILE" of="${NAME}.bin"
   done
-
 }
 
 join_image()