Skip to content

Commit fabeac8

Browse files
authored
fix: Delay rming bins till right before installing them. (AztecProtocol#4474)
As title. Fixes issue whereby providing a bad first argument to `aztec-up` deleted bins and left user have to rerun install.
1 parent 83a3136 commit fabeac8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aztec-up/bin/aztec-install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ fi
9090
# Create a "hidden" `$HOME/.aztec` dir, so as not to clutter the user's cwd.
9191
mkdir -p $AZTEC_PATH
9292
mkdir -p $BIN_PATH
93-
rm -f $BIN_PATH/aztec*
9493

9594
# Download containers from dockerhub. Tag them as latest.
9695
function pull_container {
@@ -121,6 +120,7 @@ function install_bin {
121120
}
122121

123122
info "Installing scripts in $BIN_PATH..."
123+
rm -f $BIN_PATH/aztec*
124124
install_bin .aztec-run
125125
install_bin aztec
126126
install_bin aztec-cli

0 commit comments

Comments
 (0)