Created
February 28, 2022 22:06
-
-
Save sgmills/5c0e4a8634060d983cf20541474bc480 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 to see if TouchID is enabled and returns the number of enrolled fingerprints per user | |
touchIDstatus=$( sudo bioutil -s -c | sed 's/Operation performed successfully.//g' ) | |
if [ "$touchIDstatus" != "There are no fingerprints in the system." ]; then | |
echo "<result>$touchIDstatus</result>" | |
else | |
echo "<result>Not configured</result>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment