mirror of
https://github.com/munki/munki.git
synced 2026-04-20 19:50:36 -05:00
55bce871e4
git-svn-id: http://munki.googlecode.com/svn/trunk@2 a4e17f2e-e282-11dd-95e1-755cbddbdd66
17 lines
506 B
Bash
Executable File
17 lines
506 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MIDIR=`defaults read /Library/Preferences/ManagedInstalls managed_install_dir`
|
|
IHOOK="/Applications/Utilities/radmind/iHook.app/Contents/MacOS/iHook"
|
|
SCRIPT="/Users/gneagle/Documents/managedinstalls/code/client/ManagedInstaller"
|
|
ARGS="-i"
|
|
|
|
if [ "$MIDIR" != "" ]; then
|
|
CACHEDIR="$MIDIR/Cache"
|
|
if [ -d "$CACHEDIR" ]; then
|
|
CACHECOUNT=`ls -1 "$CACHEDIR" | wc -l`
|
|
if [ $CACHECOUNT -gt 0 ]; then
|
|
"$IHOOK" --script="$SCRIPT" "$ARGS"
|
|
fi
|
|
fi
|
|
fi
|