We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6da270 commit 753d6abCopy full SHA for 753d6ab
src/mysql_run_local.sh
@@ -75,7 +75,7 @@ if [ "$(docker ps -aq -f name="${CONTAINER_NAME}")" ]; then
75
PASSWORD=$(docker inspect -f "{{ .Config.Env }}" "${CONTAINER_NAME}" | sed 's/MYSQL_ROOT_PASSWORD=//' | cut -d ' ' -f2)
76
else
77
# shellcheck disable=SC2143
78
- if [ ! -z "$(netstat -lntu | grep "${DEFAULT_PORT}")" ]; then
+ if [ -n "$(netstat -lntu | grep "${DEFAULT_PORT}")" ]; then
79
echo "ERROR: Port already taken."
80
exit 1
81
fi
0 commit comments