Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
Oct 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
}
}
Loading