I'm trying to create an Extension Attribute that can look for the existence of a directory named "Test" in a known path. I do an Advanced search, selecting the Extension Attribute and entering "is = Yes"...or entering "is = No"...but the search comes up dry. I manually confirmed that the /Users/Shared/test directory exists on one computer, but does not exist on the other.
Here's what I have...any ideas how I can get this to work?
Data Type = String Input Type = Populated by Script Script: #!/bin/bash directory="/Users/Shared/test" if [ -d $directory ]; then echo "<result>Yes</result>" else echo "<result>No</result>" fi
Thanks,
Don