Skip to content

Commit af49969

Browse files
committed
Fix sense of openocd failure check
1 parent 8299c6b commit af49969

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ done < <(echo "$repos")
3737

3838
cd $builddir
3939
if [[ "$SKIP_OPENOCD" != 1 ]]; then
40-
if ../packages/linux/openocd/build-openocd.sh; then
40+
if ! ../packages/linux/openocd/build-openocd.sh; then
4141
echo "OpenOCD Build failed"
4242
SKIP_OPENOCD=1
4343
fi

build_macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ done < <(echo "$repos")
4848

4949
cd $builddir
5050
if [[ "$SKIP_OPENOCD" != 1 ]] && [[ $(uname -m) == 'arm64' ]]; then
51-
if ../packages/macos/openocd/build-openocd.sh; then
51+
if ! ../packages/macos/openocd/build-openocd.sh; then
5252
echo "OpenOCD Build failed"
5353
SKIP_OPENOCD=1
5454
fi

0 commit comments

Comments
 (0)