Skip to content

Instantly share code, notes, and snippets.

@itsbradwhite
itsbradwhite / unity_permissions_fix.sh
Created May 22, 2023 22:48
Unity macOS - Standard User Permissions Fix
#!/bin/sh
currentUser=$( echo "show State:/Users/ConsoleUser" | scutil | awk '/Name :/ { print $3 }' )
unityFolderPath="/Users/$currentUser/Library/Unity"
# Check if Unity folder exists, create it if it doesn't
if [ ! -d "$unityFolderPath" ]; then
echo "Unity folder does not exist. Creating it..."
mkdir -p "$unityFolderPath"