Skip to content

Commit

Permalink
fix: don't exit if we can't remove a file that already doesn't exist (#…
Browse files Browse the repository at this point in the history
…5328)

* fix: don't exit if we can't remove a file that already doesn't exist

* Update localnet/common.sh

Co-authored-by: anton-chain <anton@chainflip.io>

---------

Co-authored-by: anton-chain <anton@chainflip.io>
  • Loading branch information
msgmaxim and anton-chain authored Oct 15, 2024
1 parent 33eb5eb commit d59eac6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions localnet/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,7 @@ build-localnet() {
DOT_GENESIS_HASH=$(echo $REPLY | grep -o '\"result\":\"0x[^"]*' | grep -o '0x.*')

echo "🐛 Fix solana symlink issue ..."
rm $SOLANA_BASE_PATH/test-ledger/snapshot/100/accounts_hardlinks/account_path_0
ln -s $SOLANA_BASE_PATH/test-ledger/accounts/snapshot/100 $SOLANA_BASE_PATH/test-ledger/snapshot/100/accounts_hardlinks/account_path_0
ln -sf $SOLANA_BASE_PATH/test-ledger/accounts/snapshot/100 $SOLANA_BASE_PATH/test-ledger/snapshot/100/accounts_hardlinks/account_path_0

if which solana-test-validator >>$DEBUG_OUTPUT_DESTINATION 2>&1; then
echo "☀️ Waiting for Solana node to start"
Expand Down Expand Up @@ -313,4 +312,4 @@ function load_settings(){
source $CHAINFLIP_BASE_PATH/settings.sh
echo "📦 Loaded settings from $CHAINFLIP_BASE_PATH/settings.sh"
fi
}
}

0 comments on commit d59eac6

Please sign in to comment.