Commit 7f70b048 authored by David Brown's avatar David Brown Committed by David Brown
Browse files

ci: Remove pointless '&&' command chaining



This script is run with 'set -e' and will fail if any subcommand fails.
There is no reason to chain a bunch of commands together with '&&' and
it only serves to make the script more difficult to read and edit.

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 41da99d9
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -20,15 +20,15 @@ source $(dirname "$0")/fih-tests_version.sh

# Note that we are pulling from a github mirror of these repos, not direct upstream.  If the sha
# checked out below changes, the mirrors might need to be updated.
pushd .. &&\
   git clone https://github.com/mcu-tools/trusted-firmware-m &&\
   pushd trusted-firmware-m &&\
   git checkout eb8ff0db7d657b77abcd0262d5bf7f38eb1e1cdc &&\
   source lib/ext/tf-m-tests/version.txt &&\
   popd &&\
   git clone https://github.com/mcu-tools/tf-m-tests.git &&\
   pushd tf-m-tests &&\
   git checkout $version &&\
pushd ..
git clone https://github.com/mcu-tools/trusted-firmware-m
pushd trusted-firmware-m
git checkout eb8ff0db7d657b77abcd0262d5bf7f38eb1e1cdc
source lib/ext/tf-m-tests/version.txt
popd
git clone https://github.com/mcu-tools/tf-m-tests.git
pushd tf-m-tests
git checkout $version
popd

if [[ $GITHUB_ACTIONS == true ]]; then