Skip to content

Commit

Permalink
Update deploy.devnet.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sukantoraymond committed Jul 12, 2024
1 parent aa66392 commit 1b7ccbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/morpheusvm/scripts/deploy.devnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,15 @@ EOF
# Setup devnet
CLUSTER="vryx-$(date +%s)"

interrupted=false
function showcleanup {
echo -e "\n\n${RED}run this command to destroy the devnet:${NC} ${TMPDIR}/avalanche node destroy ${CLUSTER}\n"
if [ "$interrupted" = false ]; then
echo -e "\n\n${RED}run this command to destroy the devnet:${NC} ${TMPDIR}/avalanche node destroy ${CLUSTER}\n"
fi
}

function cleanup {
interrupted=true
echo -e "\n\n${RED}destroying the devnet, running:${NC} ${TMPDIR}/avalanche node destroy ${CLUSTER}\n"
${TMPDIR}/avalanche node destroy ${CLUSTER} -y
}
Expand Down

0 comments on commit 1b7ccbe

Please sign in to comment.