Use OPENOCD env var to check version

This commit is contained in:
Konrad Beckmann 2020-12-02 09:23:42 +01:00
parent 62d81e943d
commit 3d977868e3
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
OPENOCD=${OPENOCD:-$(which openocd)}
OPENOCD_VERSION=$(openocd -v 2> >(cut -f 4 -d\ ) |head -1)
OPENOCD_VERSION=$(${OPENOCD} -v 2> >(cut -f 4 -d\ ) |head -1)
ADAPTER=$1