Skip to content

Instantly share code, notes, and snippets.

View 07-C9's full-sized avatar

Brad 07-C9

  • Washington State
  • 02:13 (UTC -07:00)
View GitHub Profile
@07-C9
07-C9 / 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"