intel / Edge-Software-Provisioner

BSD 3-Clause "New" or "Revised" License
42 stars 31 forks source link

Update flashusb.sh #26

Closed zhajianl closed 2 years ago

zhajianl commented 2 years ago

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.

dvintel commented 2 years ago

LGTM, @brod-intel ?

brod-intel commented 2 years ago

LGTM, we'll merge it.