diff --git a/devnet/prepare-config-files.sh b/devnet/prepare-config-files.sh index 117ad31e..b2d1a497 100755 --- a/devnet/prepare-config-files.sh +++ b/devnet/prepare-config-files.sh @@ -1,8 +1,11 @@ #!/bin/bash -# Give the current user the appropriate permissions -sudo chown -R $(whoami):$(whoami) scroll-sdk -sudo chmod -R u+rw scroll-sdk +# Check if running on Linux (skip permission changes on macOS) +if [[ "$OSTYPE" != "darwin"* ]]; then + # On Linux systems, set permissions + sudo chown -R $(whoami):$(whoami) scroll-sdk + sudo chmod -R u+rw scroll-sdk +fi indent_file_and_add_first_line () { echo $1