Skip to content

Commit

Permalink
Merge pull request #48 from pj8/fix/json-syntax-on-restart
Browse files Browse the repository at this point in the history
Fix json syntax on restart
  • Loading branch information
yuki777 authored Apr 29, 2023
2 parents ca338b8 + 7e98a68 commit 74fd05a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.6
v1.2.7
13 changes: 11 additions & 2 deletions mysql/restart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,14 @@ stopOutput=$(./stop.sh -f "$format" $1)
set -eu
startOutput=$(./start.sh -f "$format" $1)

echo "$stopOutput"
echo "$startOutput"
# Output
if [ "$format" = "json" ]; then
echo "["
echo "$stopOutput"
echo ","
echo "$startOutput"
echo "]"
else
echo "$stopOutput"
echo "$startOutput"
fi

0 comments on commit 74fd05a

Please sign in to comment.