-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathclean_ima_build_data.sh
executable file
·22 lines (19 loc) · 1.1 KB
/
clean_ima_build_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
export IMA_CONTRACTS_REPO_ROOT_DIR=./ima-agent/IMA
export RESTORE_CURRENT_DIR=$(pwd)
cd $IMA_CONTRACTS_REPO_ROOT_DIR/proxy; npx hardhat clean; cd $RESTORE_CURRENT_DIR
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/artifacts
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/.openzeppelin/unknown*.json
rm -rr $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/data/*.json
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/cache
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/dist
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/venv
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/version.txt
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/dist
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/src/ima_predeployed/artifacts/*
touch $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/src/ima_predeployed/artifacts/.gitkeep
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/src/*info
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/predeployed/test/additional.json
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/proxy/typechain
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/test-tokens/artifcats
rm -rf $IMA_CONTRACTS_REPO_ROOT_DIR/test-tokens/cache