- Use #!/usr/bin/env bash instead of #!/bin/bash for better portability

This commit is contained in:
DeftDawg
2024-12-22 01:14:54 -05:00
parent cfedcec3a6
commit cde912deef
4 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# Get the total memory in MB
TOTAL_MEM_MB=$(($(sysctl -n hw.memsize) / 1024 / 1024))

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if command -v python3.12 &>/dev/null; then
echo "Python 3.12 is installed, proceeding with python3.12..."

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
source ./install.sh
pushd exo/networking/grpc
python3 -m grpc_tools.protoc -I. --python_out=. --grpc_python_out=. node_service.proto

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "Starting node 1"
DEBUG_DISCOVERY=7 DEBUG=7 python3 main.py --node-id "node1" --listen-port 5678 --broadcast-port 5679 --chatgpt-api-port 52415 --chatgpt-api-response-timeout 900 > output1.log 2>&1 &