Skip to content

Commit d4a7f45

Browse files
committed
Fix shellcheck warning in flash.sh script.
1 parent 588968f commit d4a7f45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

TestIntegration/flash.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ WORKSPACE_DIR=$(realpath "${SCRIPT_DIR}/../")
55

66
export ProjDirPath
77
ProjDirPath="$(realpath "${WORKSPACE_DIR}/Projects/b_u585i_iot02a_ntz")"
8-
(cd $ProjDirPath; \
9-
BuildArtifactFileBaseName="b_u585i_iot02a_ntz" \
10-
"${WORKSPACE_DIR}"/tools/stm32u5_tool.sh flash_ntz)
8+
pushd "${ProjDirPath}" || exit
9+
export BuildArtifactFileBaseName="b_u585i_iot02a_ntz"
10+
"${WORKSPACE_DIR}"/tools/stm32u5_tool.sh flash_ntz
11+
popd || exit

0 commit comments

Comments
 (0)