From 7575b7040c7437c656bbe5b4a0cbb3b082229a53 Mon Sep 17 00:00:00 2001 From: Kevin Baensch Date: Wed, 18 Jan 2023 10:22:08 +0100 Subject: [PATCH] Use Sequel Ace if available. --- script/myssh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/myssh b/script/myssh index 703a8fa..a0ed5c1 100755 --- a/script/myssh +++ b/script/myssh @@ -138,9 +138,9 @@ set_host_env() { run_client() { if [ "$1" = 'mysql' ] then - if which ace >/dev/null 2>&1 + if [ -d "/Applications/Sequel Ace.app" ] then - ace + open "mysql://$2:$3@${SQL_PROXY_HOST}:6033" -a "Sequel Ace" elif which mysql >/dev/null 2>&1 then mysql --protocol=TCP -u "$2" -p"$3" -h "${SQL_PROXY_HOST}" -P 6033