From fabeac8b3f9971763a9a723ac6983e5ea8330f46 Mon Sep 17 00:00:00 2001 From: Charlie Lye Date: Wed, 7 Feb 2024 11:20:03 +0000 Subject: [PATCH] fix: Delay rming bins till right before installing them. (#4474) As title. Fixes issue whereby providing a bad first argument to `aztec-up` deleted bins and left user have to rerun install. --- aztec-up/bin/aztec-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aztec-up/bin/aztec-install b/aztec-up/bin/aztec-install index 3c7dec94844..769ed5fcb8c 100755 --- a/aztec-up/bin/aztec-install +++ b/aztec-up/bin/aztec-install @@ -90,7 +90,6 @@ fi # Create a "hidden" `$HOME/.aztec` dir, so as not to clutter the user's cwd. mkdir -p $AZTEC_PATH mkdir -p $BIN_PATH -rm -f $BIN_PATH/aztec* # Download containers from dockerhub. Tag them as latest. function pull_container { @@ -121,6 +120,7 @@ function install_bin { } info "Installing scripts in $BIN_PATH..." +rm -f $BIN_PATH/aztec* install_bin .aztec-run install_bin aztec install_bin aztec-cli