Ubuntu 18.04 and latest versions are using bash 4.4.20.
Ubuntu parse usb path is /dev/sda
centos7.9 is using bash 4.2.46(2).
centos parse usb path is \/dev/sda and is invalid.
This issue only happend on centos7.9 and is related with bash version.
In order to compatible both Centos and Ubuntu, we change bash codes for both OS.
This patch is verified on Ubuntu18.04 and centos7.9, both are ok.
Ubuntu 18.04 and latest versions are using bash 4.4.20. Ubuntu parse usb path is /dev/sda centos7.9 is using bash 4.2.46(2). centos parse usb path is \/dev/sda and is invalid. This issue only happend on centos7.9 and is related with bash version. In order to compatible both Centos and Ubuntu, we change bash codes for both OS.
This patch is verified on Ubuntu18.04 and centos7.9, both are ok.