Skip to content

Commit 3c6e315

Browse files
authored
fix: macos whoami issue (#214)
1 parent 0a9839e commit 3c6e315

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

devnet/prepare-config-files.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!/bin/bash
22

3-
# Give the current user the appropriate permissions
4-
sudo chown -R $(whoami):$(whoami) scroll-sdk
5-
sudo chmod -R u+rw scroll-sdk
3+
# Check if running on Linux (skip permission changes on macOS)
4+
if [[ "$OSTYPE" != "darwin"* ]]; then
5+
# On Linux systems, set permissions
6+
sudo chown -R $(whoami):$(whoami) scroll-sdk
7+
sudo chmod -R u+rw scroll-sdk
8+
fi
69

710
indent_file_and_add_first_line () {
811
echo $1

0 commit comments

Comments
 (0)