diff --git a/scripts/update-ui-tests.sh b/scripts/update-ui-tests.sh index 58f03d8f10c1..785cc7bd3291 100755 --- a/scripts/update-ui-tests.sh +++ b/scripts/update-ui-tests.sh @@ -16,15 +16,14 @@ if [ ! -z "$1" ]; then echo "installing rustup $RUST_VERSION" - rustup install $RUST_VERSION - rustup component add rust-src --toolchain $RUST_VERSION - - if ! command -v rustup &> /dev/null then echo "rustup needs to be installed" exit fi + + rustup install $RUST_VERSION + rustup component add rust-src --toolchain $RUST_VERSION fi # Ensure we run the ui tests