Small fixes with help text and program message

This commit is contained in:
Thomas Schmitt 2019-12-09 21:40:58 +01:00
parent 6bfdd2f9d9
commit 1efa98ae40

View File

@ -56,7 +56,7 @@ print_usage() {
echo "If no device names and no -list_all are given, then a plain list of" echo "If no device names and no -list_all are given, then a plain list of"
echo "advisable device names is printed to stdout. One per line." echo "advisable device names is printed to stdout. One per line."
echo "Device names must not begin by '-' and must be single words. They must" echo "Device names must not begin by '-' and must be single words. They must"
echo "not contain '/'. E.g. 'sdc' is valid, '/dev/sdc' is not valid." echo "not begin by '/dev/'. E.g. 'sdc' is valid, '/dev/sdc' is not valid."
echo "If device names are given, then they get listed with advice shown." echo "If device names are given, then they get listed with advice shown."
echo "If one of the given device names gets not advised, the exit value is 1." echo "If one of the given device names gets not advised, the exit value is 1."
echo echo
@ -117,7 +117,7 @@ print_usage() {
echo "Examples:" echo "Examples:"
echo " $0 -with_sudo -list_all" echo " $0 -with_sudo -list_all"
echo " $0 sdc" echo " $0 sdc"
echo " $0 -with_sudo -image_file debian-live-10.0.0-amd64-xfce.iso -DO_WRITE" echo " $0 -with_sudo -image_file debian-live-10.0.0-amd64-xfce.iso -DO_WRITE -dummy"
echo " $0 -with_sudo -image_file debian-live-10.0.0-amd64-xfce.iso -DO_WRITE -plug_test" echo " $0 -with_sudo -image_file debian-live-10.0.0-amd64-xfce.iso -DO_WRITE -plug_test"
echo echo
} }
@ -753,6 +753,7 @@ then
write_image "$image_file" $candidates write_image "$image_file" $candidates
exit $? exit $?
else else
candidates=$(echo $candidates)
if test -n "$dummy_run" if test -n "$dummy_run"
then then
echo "Would simulate writing to /dev/$candidates if an -image_file were given." echo "Would simulate writing to /dev/$candidates if an -image_file were given."