#!/bin/bash
# $Header: /Users/msolomon/Developer/cvs/SIMBL/simbl-resources/InstallationCheck,v 1.2 2003/06/22 22:35:18 msolomon Exp $

USERS=$(ls /Users)

for USERNAME in ${USERS}
do
 if [ -d "/Users/${USERNAME}/Library/InputManagers/SIMBL" ]; then
	 ${PACKAGE_PATH}/Contents/Resources/Alert.app/Contents/MacOS/Alert "SIMBL Install Error" "An earlier version of SIMBL is installed at /Users/${USERNAME}/Library/InputManagers/SIMBL.  This version needs to be removed before this installation can proceed." -ok
	 exit 112
 fi
done

exit 0
