Skip to content

Commit

Permalink
MDEV-6352 [PATCH] mysql_config prints usage to stdout and exit with 0…
Browse files Browse the repository at this point in the history
… if run with unknow option
  • Loading branch information
Sergei Golubchik committed Aug 3, 2014
1 parent 91c47e6 commit 0661c73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/mysql_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ Options:
pkglibdir [$pkglibdir]
plugindir [$plugindir]
EOF
exit 0
exit $1
}

if test $# -le 0; then usage; fi
if test $# -le 0; then usage 0 ; fi

while test $# -gt 0; do
case $1 in
Expand All @@ -198,10 +198,10 @@ while test $# -gt 0; do
pkgincludedir) echo "$pkgincludedir" ;;
pkglibdir) echo "$pkglibdir" ;;
plugindir) echo "$plugindir" ;;
*) usage ;;
*) usage 1 >&2 ;;
esac
;;
*) usage ;;
*) usage 1 >&2 ;;
esac

shift
Expand Down

0 comments on commit 0661c73

Please sign in to comment.