<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff --git a/wifi-password.sh b/wifi-password.sh
index ac2d0ef..0ca76bd 100755
--- a/wifi-password.sh
+++ b/wifi-password.sh
@@ -75,7 +75,7 @@ fi
 sleep 2
 
 # source: http://blog.macromates.com/2006/keychain-access-from-shell/
-pwd="`security find-generic-password -ga \"$ssid\" 2&gt;&amp;1 &gt;/dev/null`"
+pwd="`security find-generic-password -D 'AirPort network password' -ga \"$ssid\" 2&gt;&amp;1 &gt;/dev/null`"
 
 if [[ $pwd =~ "could" ]]; then
   echo "ERROR: Could not find SSID \"$ssid\"" &gt;&amp;2
</pre></body></html>