Skip to content

Commit

Permalink
fix: check if canister_ids.json file exists before trying to delete it
Browse files Browse the repository at this point in the history
  • Loading branch information
alenmestrov committed Dec 23, 2024
1 parent 42a9528 commit df5b56f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contracts/icp/context-config/deploy_devnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ dfx identity use default

# Stop dfx and clean up all state
dfx stop
sleep 2
rm -rf .dfx
rm -rf ~/.config/dfx/replica-configuration/
rm -rf ~/.cache/dfinity/
rm canister_ids.json
# Remove canister_ids.json if it exists
if [ -f "canister_ids.json" ]; then
rm canister_ids.json
fi

# Start dfx with clean state
dfx start --clean --background
sleep 5

# Define canister IDs
CONTEXT_ID="br5f7-7uaaa-aaaaa-qaaca-cai"
Expand Down

0 comments on commit df5b56f

Please sign in to comment.