Skip to content

Commit 6316e18

Browse files
tgonzalezorlandoarmgowthamsk-arm
authored andcommitted
ci.sh: Only run the script logic after input validation
The script's logic should only be run after the options and arguments provided have been validated. Signed-off-by: Tomás González <tomasagustin.gonzalezorlando@arm.com>
1 parent 1469219 commit 6316e18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ if [[ ! -z ${RUST_TOOLCHAIN_VERSION:+x} ]]; then
4141
rustup override set ${RUST_TOOLCHAIN_VERSION}
4242
fi
4343

44-
rustup update
45-
4644
BUILD="False"
4745
TEST="False"
4846
STATIC_CHECKS="False"
@@ -70,6 +68,8 @@ while [ "$#" -gt 0 ]; do
7068
shift
7169
done
7270

71+
rustup update
72+
7373
if [ "$BUILD" == "True" ]; then
7474
echo "OpenSSL version being used:"
7575
openssl version

0 commit comments

Comments
 (0)