Last active
October 31, 2016 21:09
-
-
Save krispayne/c8daa7e6603ec3df838fa19ec992a0f6 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 | |
# check for a printer driver | |
# utilizes Casper parameters | |
PRINTER_DRIVER="${4}" | |
TRIGGER="${5}" | |
BASEPPD="/Library/Printers/PPDs/Contents/Resources" | |
if [[ ! -e "${BASEPPD}/${PRINTER_DRIVER}" ]]; then | |
echo "Installing driver from Casper..." | |
jamf policy -trigger ${5} | |
else | |
echo "Driver already exists, proceed." | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment