Skip to content

Commit

Permalink
fix: macos whoami issue (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
dghelm authored Oct 31, 2024
1 parent 0a9839e commit 3c6e315
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions devnet/prepare-config-files.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 3c6e315

Please sign in to comment.