Last active
July 16, 2016 20:04
-
-
Save stevewood-tx/8ba099db5f921eeeaf753582d5589d0a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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