#!/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