- Introduced Aggregator.sol for Chainlink-compatible oracle functionality, including round-based updates and access control. - Added OracleWithCCIP.sol to extend Aggregator with CCIP cross-chain messaging capabilities. - Created .gitmodules to include OpenZeppelin contracts as a submodule. - Developed a comprehensive deployment guide in NEXT_STEPS_COMPLETE_GUIDE.md for Phase 2 and smart contract deployment. - Implemented Vite configuration for the orchestration portal, supporting both Vue and React frameworks. - Added server-side logic for the Multi-Cloud Orchestration Portal, including API endpoints for environment management and monitoring. - Created scripts for resource import and usage validation across non-US regions. - Added tests for CCIP error handling and integration to ensure robust functionality. - Included various new files and directories for the orchestration portal and deployment scripts.
22 lines
579 B
Bash
Executable File
22 lines
579 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Standardize script shebangs
|
|
# Converts #!/bin/bash to #!/usr/bin/env bash for better portability
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"
|
|
|
|
cd "$PROJECT_ROOT"
|
|
|
|
count=0
|
|
while IFS= read -r -d '' file; do
|
|
if head -1 "$file" | grep -q "^#!/bin/bash"; then
|
|
sed -i '1s|#!/bin/bash|#!/usr/bin/env bash|' "$file"
|
|
((count++)) || true
|
|
fi
|
|
done < <(find scripts -name "*.sh" -type f -print0)
|
|
|
|
echo "✅ Standardized $count scripts to use #!/usr/bin/env bash"
|
|
|