Skip to content

Commit

Permalink
Fix sense of openocd failure check
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Sep 2, 2024
1 parent 8299c6b commit af49969
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ done < <(echo "$repos")

cd $builddir
if [[ "$SKIP_OPENOCD" != 1 ]]; then
if ../packages/linux/openocd/build-openocd.sh; then
if ! ../packages/linux/openocd/build-openocd.sh; then
echo "OpenOCD Build failed"
SKIP_OPENOCD=1
fi
Expand Down
2 changes: 1 addition & 1 deletion build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ done < <(echo "$repos")

cd $builddir
if [[ "$SKIP_OPENOCD" != 1 ]] && [[ $(uname -m) == 'arm64' ]]; then
if ../packages/macos/openocd/build-openocd.sh; then
if ! ../packages/macos/openocd/build-openocd.sh; then
echo "OpenOCD Build failed"
SKIP_OPENOCD=1
fi
Expand Down

0 comments on commit af49969

Please sign in to comment.