ddsect.sh: small cleanups
[ddsect.git] / 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()