feat(create_installer): remove extraneous conditional

Using `-f` is functionally equivalent to first checking if the dir exists before removing it. We just want to ensure the build dir doesn't exists.
This commit is contained in:
psychedelicious 2023-12-09 20:33:17 +11:00
parent 1feab3da37
commit 179bc64490

View File

@ -84,9 +84,7 @@ if [[ $(python -c 'from importlib.util import find_spec; print(find_spec("build"
pip install --user build
fi
if [ -d ../build ]; then
rm -Rf ../build
fi
rm -rf ../build
python -m build --wheel --outdir dist/ ../.