This may seem like a naive question (and probably is) but how do I do the equivalent of sourcing a bash script library from within Jamf Pro? I have a file with a few common routines that several of our scripts use, and it would be nice to keep that structure intact instead of duplicating code all over the place. Do I just package the library up and drop it someplace (right now it resides in /usr/local/bin/ND/ on our systems) and then just source it like normal from the scripts that are executed by Jamf Pro policies? I'm new at the scripting part of Jamf (although I've been doing bash scripts for a while now) and I'm not sure what the best practice here is.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.