summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xunlock2
1 files changed, 1 insertions, 1 deletions
diff --git a/unlock b/unlock
index 0ed851f..fd7a493 100755
--- a/unlock
+++ b/unlock
@@ -6,7 +6,7 @@ toast() {
}
# Try to unlock
-FINGERPRINT=$(termux-fingerprint | jq -r '.fingerprints[0].fingerprint')
+FINGERPRINT=$(termux-fingerprint | jq '.auth_result | contains("SUCCESS")')
if ( "$FINGERPRINT"); then
ssh pc "pkill slock"
toast "Success"