JElchison / format-udf

Bash script to format a block device (hard drive or Flash drive) in UDF. The output is a drive that can be used for reading/writing across multiple operating system families: Windows, macOS, and Linux. This script should be capable of running in macOS or in Linux.
GNU General Public License v2.0
518 stars 48 forks source link

Let <device> parameter have '/dev/' prefix #25

Closed JElchison closed 4 years ago

JElchison commented 8 years ago

Suggested by @lucky62 in #24:

Please consider to allow /dev/ prefix for the device name. So both formats will be possible:

I see that /dev/$DEVICE pattern is used many times in your script so I think better is to check at the beginning if has the /dev/ prefix and add it if not. Then you can use simple $DEVICE instead of /dev/$DEVICE.

yodor commented 6 years ago

Hello maybe also enable sr0-9 type devices for optical media ?