Skip to content

Instantly share code, notes, and snippets.

@macmule
Created November 26, 2021 20:49
Show Gist options
  • Select an option

  • Save macmule/2270c7df50177586e1f806c13bbbfd97 to your computer and use it in GitHub Desktop.

Select an option

Save macmule/2270c7df50177586e1f806c13bbbfd97 to your computer and use it in GitHub Desktop.
#!/bin/sh
####################################################################################################
#
# License: https://macmule.com/license/
#
####################################################################################################
# Check to see if /Users/Shared exists..
if [ -d "/Users/Shared/" ];
then
# If /Users/Shared exists, exit...
echo "/Users/Shared exists.. exiting"
exit 0
else
# If /Users/Shared does not exist, create...
mkdir /Users/Shared/
echo "Created /Users/Shared/ directory..."
# Give everyone 777 access to /Users/Shared/...
chmod -R 777 /Users/Shared/
echo "Set permissions to 777 on /Users/Shared/..."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment