Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 753d6ab

Browse files
Fixed mysql run.
1 parent c6da270 commit 753d6ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/mysql_run_local.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if [ "$(docker ps -aq -f name="${CONTAINER_NAME}")" ]; then
7575
PASSWORD=$(docker inspect -f "{{ .Config.Env }}" "${CONTAINER_NAME}" | sed 's/MYSQL_ROOT_PASSWORD=//' | cut -d ' ' -f2)
7676
else
7777
# shellcheck disable=SC2143
78-
if [ !-z "$(netstat -lntu | grep "${DEFAULT_PORT}")" ]; then
78+
if [ -n "$(netstat -lntu | grep "${DEFAULT_PORT}")" ]; then
7979
echo "ERROR: Port already taken."
8080
exit 1
8181
fi

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /