Skip to content

Conversation

@Milopadma
Copy link
Collaborator

This pull request standardizes the shebang lines across all shell scripts in the canister/scripts and related directories by replacing #! bash with #!/bin/bash. Additionally, it improves the platform detection logic in portforward.sh to better distinguish native Windows environments from WSL. These changes enhance script compatibility and reliability across different environments.

Shell script standardization:

  • Updated the shebang from #! bash to #!/bin/bash in all scripts under canister/scripts/deployments, canister/scripts/upgrades/staging, and canister/scripts/utils, as well as in canister/setup.sh, to ensure proper interpreter usage and prevent execution issues. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Platform detection improvements:

  • Enhanced the is_windows function in portforward.sh to correctly identify Windows environments and exclude WSL (Windows Subsystem for Linux), improving cross-platform compatibility for port forwarding scripts.

Milopadma and others added 7 commits November 4, 2025 10:24
…E_PORT to be cross-platform compatible

feat(local.sh): add wait_for_dfx function to ensure dfx is ready before proceeding with deployments
…atting for better clarity and organization

fix: ensure bash is used for local deployment script and add checks for dependencies and canister existence
refactor: improve error handling and output in build scripts and canister setup
style: apply consistent formatting and spacing across various Rust files for better readability
feat: enhance integration testing instructions and clarify setup steps in README
fix: correct comments and improve code readability in Rust source files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants