zip2img

A small utility to converts ZIP archives to MS-DOS compatible disk images (virtual floppies) 💾️

Commit
80e83c93ed455b28027bd355b106a81a953a73d6
Parent
8dd2c56113b619f76e523670167b76dd2b5575ec
Author
Pablo <pablo-escobar@riseup.net>
Date

Converted the README to Markdown

Diffstat

4 files changed, 19 insertions, 24 deletions

Status File Name N° Changes Insertions Deletions
Added .img 0 0 0
Deleted README.adoc 23 0 23
Added README.md 18 18 0
Modified zip2img 2 1 1
diff --git a/.img b/.img
Binary files differ.
diff --git a/README.adoc b/README.adoc
@@ -1,23 +0,0 @@
-= zip2img
-
-A small utility that converts ZIP archives to MS-DOS compatible disk images
-(virtual floppies).
-
-== Usage
-
-----
-$ zip2img zipfile [imagefile]
-----
-
-This command converts the zip archive `file` to a MS-DOS compatible disk image
-(virtual floppy) which has the same name as `file` -- only the file extension 
-is changed.
-
-== Installation
-
-`zip2img` can be installed by cloning the repository locally and runnning
-
-----
-$ sudo make install
-----
-
diff --git a/README.md b/README.md
@@ -0,0 +1,18 @@
+## Usage
+
+```
+$ zip2img zipfile [imagefile]
+```
+
+This command converts the zip archive `file` to a MS-DOS compatible disk image
+(virtual floppy) which has the same name as `file` -- only the file extension 
+is changed.
+
+## Installation
+
+`zip2img` can be installed by cloning the repository locally and runnning
+
+```
+$ sudo make install
+```
+
diff --git a/zip2img b/zip2img
@@ -39,5 +39,5 @@ dd if=/dev/zero of="$img" count=1440 bs=1k
 mcopy -i "$img" "$dir/"* ::/
 
 # Delete the temporary directory
-rm "$dir/" -rf
+rm "${dir:?}" -rf