Skip to content

Commit 07e47c6

Browse files
committed
update README.md with new binary instructions
1 parent 7336bc1 commit 07e47c6

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
# Bash write img to disk
1+
# Write img to disk
2+
Simple bash script that writes an iso or img file to a USB or SD card.
3+
The bash script is now also available as binary.
24

3-
Simple bash script that writes an iso or img file to a USB or SD card.
5+
## Installation
6+
### Option 1: Bash script
7+
Download the bash script file and execute it like this `bash script.sh`.
48

5-
Download the bash file and execute it like this `bash script.sh`.
6-
Follow the instructions in the terminal.
9+
## Option 2: Binary (Beta)
10+
1. Run `sudo curl https://raw.githubusercontent.com/faessler/bash-write-img-to-disk/master/witd -o /usr/local/bin/witd && sudo chmod 755 witd` to download the binary and put it in _/usr/local/bin_.
11+
2. After that you can execute `witd` from anywhere.
12+
13+
Note: You can put the binary also in another directory if you don't want to use _/user/local/bin_. If you use _/user/local/bin_ make sure that the directory exists and is in your path (`echo $PATH`). Execute `export PATH=$PATH:/usr/local/bin` to add it to your path.
714

15+
## Preview
16+
Follow the instructions in the terminal.
817
![Terminal Preview](./preview.png)
18+
19+
## Development
20+
Update binary: `shc -f ./script.sh -o ./witd`

0 commit comments

Comments
 (0)