diff --git a/scripts/starter.sh b/scripts/starter.sh index c963cc8..2505ce2 100755 --- a/scripts/starter.sh +++ b/scripts/starter.sh @@ -220,17 +220,20 @@ if [[ $HARD_RESET = true ]]; then downgrade_compiler_if_needed + echo "[+] trying to stop current ghost-node" + sudo systemctl stop ghost-node + echo "[+] trying to remove locally stored ledger" + sudo rm -rf "$BASE_PATH/chains/casper_staging_testnet" + cd $PROJECT_FOLDER echo "[+] clean build cache..." cargo clean echo "[+] starting build in 3 seconds..." sleep 3 - cargo build $RELEASE $FEATURES + cargo build --release - echo "[+] trying to stop current ghost-node" - sudo systemctl stop ghost-node - echo "[+] trying to remove locally stored ledger" - sudo rm -rf "$BASE_PATH/chains/*" + printf "[?] are you ready to continue?" + read anything cd $PROJECT_FOLDER echo "[+] trying to copy executable to '$EXECUTABLE_PATH'"