diff options
author | Bibiko <bibiko@eva.mpg.de> | 2011-01-19 23:41:41 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2011-01-19 23:41:41 +0000 |
commit | fa8cf4d15f95b0d3db90311c252b2398e9e51345 (patch) | |
tree | a1ffa0296a6283f6b774e0b5e7875dd8498ec000 /SharedSupport/Default Bundles | |
parent | 0234a711d310934d4b7db541cf9af0e33e5b18c2 (diff) | |
download | sequelpro-fa8cf4d15f95b0d3db90311c252b2398e9e51345.tar.gz sequelpro-fa8cf4d15f95b0d3db90311c252b2398e9e51345.tar.bz2 sequelpro-fa8cf4d15f95b0d3db90311c252b2398e9e51345.zip |
• added to "Format SQL" Bundle command to display once an alert for the very first usage that this command sends the SQL statement(s) to an online service
Diffstat (limited to 'SharedSupport/Default Bundles')
-rw-r--r-- | SharedSupport/Default Bundles/Format SQL.spBundle/command.plist | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/SharedSupport/Default Bundles/Format SQL.spBundle/command.plist b/SharedSupport/Default Bundles/Format SQL.spBundle/command.plist index f6472de5..1459d7a6 100644 --- a/SharedSupport/Default Bundles/Format SQL.spBundle/command.plist +++ b/SharedSupport/Default Bundles/Format SQL.spBundle/command.plist @@ -23,6 +23,17 @@ if [ $connected -eq "0" ]; then exit $SP_BUNDLE_EXIT_SHOW_AS_HTML_TOOLTIP fi +# show info alert about sending the SQL statements to an online service +if [ ! -e infoShowed ]; then + touch infoShowed + osascript -e 'tell app "Sequel Pro" to display dialog "This command will send the SQL statement(s) - unencrypted - to an online service (http://www.dpriver.com). Please consider this before sending confidential data!\n\nThis message will only be displayed once." with icon caution' 2> 1 + if [ `cat 1 | wc -c` -ne 0 ]; then + rm -f 1 + exit $SP_BUNDLE_EXIT_NONE + fi + rm -f 1 +fi + # send SQL to www.dpriver.com and replace the formatted SQL string in first responder; if a parser error occurred # show error message and try to jump to the error cat <<HTML |