Created
March 8, 2016 10:37
-
-
Save chernjie/63df9a1c6f8e74d01849 to your computer and use it in GitHub Desktop.
ssh script to overwrite ignoring of mutex on SequelPro > v1.1.0
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
_log () { | |
echo $(date) $@ >> /var/log/sequelpro.log | |
} | |
for i do | |
case "$i" | |
in | |
-L\ *) | |
_log L "$1" | |
larg="$1" | |
shift | |
;; | |
-v|-N) | |
_log sflags "$1" | |
sflags="${i#-}$sflags"; | |
shift | |
;; | |
--) | |
shift | |
break | |
;; | |
-?) | |
_log ignore1 "$i" | |
shift | |
;; | |
-*) | |
_log ignore* "$1" | |
shift | |
;; | |
*) | |
_log 'star' "$i" | |
_sshhosts="$_sshhosts $i" | |
shift | |
;; | |
esac | |
done | |
exec /usr/bin/ssh "$larg" -"$sflags" $_sshhosts |
Author
chernjie
commented
Mar 8, 2016
- Go to SequelPro > Preferences > Network tab
- Update SSH Client to point to the above SSH script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment