Replaced fgrep by grep -F

master
Thomas Schmitt 3 years ago
parent f7f484de20
commit 3bf01c109d
  1. 12
      xorriso-dd-target/xorriso-dd-target

@ -279,7 +279,7 @@ plug_in_watcher() {
else
for i in $new_device_list
do
if echo "$old_device_list" | fgrep -v ' '"$i"' ' >/dev/null
if echo "$old_device_list" | grep -F -v ' '"$i"' ' >/dev/null
then
found_devices="$found_devices $i"
fi
@ -362,7 +362,7 @@ list_devices() {
if echo "$name" | grep '^mmcblk[0-9]' >/dev/null
then
transports="mmcblk"
elif echo "$name" | fgrep "/" >/dev/null
elif echo "$name" | grep -F "/" >/dev/null
then
echo "NOTE: The device name must not contain '/' characters" >&2
transports=not_an_expected_name
@ -388,7 +388,7 @@ list_devices() {
then
dummy=dummy
else
if echo "$reasons" | fgrep -v "not_usb" >/dev/null
if echo "$reasons" | grep -F -v "not_usb" >/dev/null
then
reasons="${reasons}not_usb- "
fi
@ -419,21 +419,21 @@ list_devices() {
if test "$fstype" = "iso9660"
then
has_iso=y
if echo "$good_fs" | fgrep -v "has_$fstype" >/dev/null
if echo "$good_fs" | grep -F -v "has_$fstype" >/dev/null
then
good_fs="${good_fs}has_${fstype}+ "
fi
elif test "$fstype" = "vfat"
then
has_vfat=y
if echo "$good_fs" | fgrep -v "has_$fstype" >/dev/null
if echo "$good_fs" | grep -F -v "has_$fstype" >/dev/null
then
good_fs="${good_fs}has_${fstype}+ "
fi
elif test -n "$fstype"
then
has_other=y
if echo "$bad_fs" | fgrep -v "has_$fstype" >/dev/null
if echo "$bad_fs" | grep -F -v "has_$fstype" >/dev/null
then
bad_fs="${bad_fs}has_${fstype}- "
fi

Loading…
Cancel
Save