Since USB support is not featured out of the box in WSL2, a possible workaround is to run the adb.exe windows executable from WSL2. However, adb.exe will output Windows-style line endings (CR/LF), which are not handled by the shell script. I added a little sed substitution to get rid of CR without side-effects on Linux.
Feel free to reject the PR if it's too specific to WSL2.
Since USB support is not featured out of the box in WSL2, a possible workaround is to run the adb.exe windows executable from WSL2. However, adb.exe will output Windows-style line endings (CR/LF), which are not handled by the shell script. I added a little sed substitution to get rid of CR without side-effects on Linux.
Feel free to reject the PR if it's too specific to WSL2.