Skip to content

Commit

Permalink
replacement fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juan518munoz committed Oct 4, 2024
1 parent f941f28 commit 8ecc04d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions restore-ecosystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ fi
find_and_replace() {
local target_file=$1

# Find lines with the pattern and replace them with `pwd/./`
sed -i '' -e "s|.*zksync-era/\./|$(pwd)/./|g" "$target_file"
sed -i '' -e "s|db_path:.*zksync-era/\./|db_path: $(pwd)/./|g" "$target_file"
sed -i '' -e "s|state_keeper_db_path:.*zksync-era/\./|state_keeper_db_path: $(pwd)/./|g" "$target_file"
sed -i '' -e "s|path:.*zksync-era/\./|path: $(pwd)/./|g" "$target_file"
sed -i '' -e "s|configs:.*zksync-era/\./|configs: $(pwd)/./|g" "$target_file"
}

# Array of specific files to modify
Expand Down

0 comments on commit 8ecc04d

Please sign in to comment.