Skip to content

Instantly share code, notes, and snippets.

@sgmills
Created February 28, 2022 22:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgmills/5c0e4a8634060d983cf20541474bc480 to your computer and use it in GitHub Desktop.
Save sgmills/5c0e4a8634060d983cf20541474bc480 to your computer and use it in GitHub Desktop.
#!/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