From a7920c01d7091683b5d5334ec4468d8ea1adf935 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 19 Oct 2023 15:04:51 +0200 Subject: [PATCH] Avoid grep warning without this patch, output contained grep: warning: stray \ before white space --- scripts/build-udev-rules.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/build-udev-rules.sh b/scripts/build-udev-rules.sh index 07fae703..993a463f 100755 --- a/scripts/build-udev-rules.sh +++ b/scripts/build-udev-rules.sh @@ -49,8 +49,8 @@ echo -e "$UDEV_HEADER" > "$UDEV_FILE" # | callback_function | VID | PID | Name | # #-----------------------------------------------------------------------------# echo -e "Creating device list" -HID_LIST=$(grep -hR -e "static\ HIDDeviceDetector" . | cut -d '(' -f 2- | awk -F , '{ print $2 ":|" $3 "|" $4 "|" $1 "|" }') -HID_WRAPPER_LIST=$(grep -hR -e "static\ HIDWrappedDeviceDetector" . | cut -d '(' -f 2- | awk -F , '{ print $2 ":|" $3 "|" $4 "|" $1 "|" }') +HID_LIST=$(grep -hR -e "static HIDDeviceDetector" . | cut -d '(' -f 2- | awk -F , '{ print $2 ":|" $3 "|" $4 "|" $1 "|" }') +HID_WRAPPER_LIST=$(grep -hR -e "static HIDWrappedDeviceDetector" . | cut -d '(' -f 2- | awk -F , '{ print $2 ":|" $3 "|" $4 "|" $1 "|" }') DUMMY_LIST=$( grep -hR -e DUMMY_DEVICE_DETECTOR ${CONTROLLER_PATH} | cut -d '(' -f 2- | cut -d ')' -f 1 | awk -F , '{ print $2 ":|" $3 "|" $4 "|" $1 "|" }') #Check the output of the hid_list