Skip to content

Instantly share code, notes, and snippets.

@stevewood-tx
Last active July 16, 2016 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevewood-tx/8ba099db5f921eeeaf753582d5589d0a to your computer and use it in GitHub Desktop.
Save stevewood-tx/8ba099db5f921eeeaf753582d5589d0a to your computer and use it in GitHub Desktop.
#!/bin/bash
dataFolder="/Library/IT_Data"
dataFile="${dataFolder}/com.mycompany.homesize.plist"
if [[ -e ${dataFile} ]]; then
homeSize=`defaults read ${dataFile} HomeFolderSize`
fi
if [[ ${homeSize} ]]; then
echo "<result>${homeSize}</result>"
else
echo "<result>No Results Found</result>"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment