set-exopipefail
main(){rustupcomponentaddrust-src
SYSROOT=$(rustc--printsysroot)if[[!"$SYSROOT"=~"$TARGET"]];thenrustuptargetadd$TARGETelseecho"Target $TARGET is already installed"fiif[!-z$COVERAGE];thenif![-x"$(command-vgrcov)"];thencargoinstallgrcov
elseecho"grcov is already installed"fifi}
main