Commit 0661c732 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-6352 [PATCH] mysql_config prints usage to stdout and exit with 0 if run with unknow option

parent 91c47e6f
......@@ -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
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment