Skip to content

Commit b1edcde

Browse files
committed
fix(make): guard toolchain uninstall on non-empty TOOLCHAIN_NAME
TOOLCHAIN_NAME defaults to empty in the Makefile, which meant make clean would always run rustup toolchain uninstall "" and fail. Now we only attempt the uninstall when the variable is actually set.
1 parent 2b38837 commit b1edcde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ clean: rustup-clear-toolchain clean-graphs
3333
rustup-clear-toolchain:
3434
rustup override unset
3535
rustup override unset --nonexistent
36-
rustup toolchain uninstall "$(TOOLCHAIN_NAME)"
36+
if [ -n "$(TOOLCHAIN_NAME)" ]; then rustup toolchain uninstall "$(TOOLCHAIN_NAME)"; fi
3737

3838
### Test
3939

0 commit comments

Comments
 (0)