matter-labs / zksync

zkSync: trustless scaling and privacy engine for Ethereum
https://zksync.io
Apache License 2.0
4.86k stars 2.69k forks source link

Update zksync-env.sh #600

Open Alexlesch98 opened 4 months ago

Alexlesch98 commented 4 months ago

Changes made:

1.Improved formatting and indentation for better readability.

  1. Enclosed variable expansions in double quotes to prevent word splitting and globbing issues.
  2. Replaced some subshell executions ($(...)) with command substitution (cmd || true) for better error handling.
  3. Reorganized the script structure for clarity and easier maintenance.
  4. Added missing double quotes around file paths to handle paths with spaces or special characters properly.
  5. Simplified some conditional statements and error handling.
  6. Improved comments for clarity.
NDT3117 commented 3 months ago

Nice