Skip to content

Commit

Permalink
deal with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Gator96100 committed Apr 8, 2021
1 parent c80a759 commit 505c395
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pm3
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function get_pm3_list_WSL {
if [ -e "$DEV" ]; then
#prevent soft bricking when using pm3-flash-all on an outdated bootloader
if [ $(basename -- "$0") = "pm3-flash-all" ]; then
if [ ! $($PSHEXE -command "Get-CimInstance -ClassName Win32_serialport | Where-Object {\$_.DeviceID -eq '$_comport'} | Select -expandproperty PNPDeviceID" 2>/dev/null) = "USB\VID_9AC4&PID_4B8F\ICEMAN" ]; then
if [ ! $($PSHEXE -command "Get-CimInstance -ClassName Win32_serialport | Where-Object {\$_.DeviceID -eq '$_comport'} | Select -expandproperty PNPDeviceID" 2>/dev/null | tr -dc '[:print:]') = "USB\VID_9AC4&PID_4B8F\ICEMAN" ]; then
echo -e "\033[0;31m[!] Using pm3-flash-all on an oudated bootloader, use pm3-flash-bootrom first!"
exit 1
fi
Expand Down

0 comments on commit 505c395

Please sign in to comment.