Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit 6a4b7a5

Browse files
author
Leonid Makarov
authored
Merge pull request #178 from fuzzbomb/177-mysql-commands-broken-since-dsh-v1.21.1
Restore use of DRUDE_IS_TTY=0 in get_mysql_connect (fixes #177)
2 parents 2144ae3 + 05a1664 commit 6a4b7a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bin/dsh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ clean_string ()
141141
get_mysql_connect ()
142142
{
143143
# Run drush forcing tty to false to avoid colored output string from drush.
144-
cleaned_string=$(echo $(_run drush sql-connect) | sed -e 's/[^a-zA-Z0-9_-]$//')
145-
echo "$cleaned_string"
144+
# Removes invisible residue from the connection string that remains
145+
#leftover in Babun+docker-compose sometimes.
146+
connection_string=$(echo $(DRUDE_IS_TTY=0 _run drush sql-connect) | sed -e 's/[^a-zA-Z0-9_-]$//')
147+
echo ${connection_string}
146148
}
147149

148150
# Use this function for every docker-compose invocation.

0 commit comments

Comments
 (0)