summaryrefslogtreecommitdiff
path: root/scripts/mysql_config.sh
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-08-03 18:39:36 +0200
committerSergei Golubchik <sergii@pisem.net>2014-08-03 18:39:36 +0200
commit0661c7329d5b1fb7630f7ba37c722c06882ea811 (patch)
tree9544a3b867596c9860d8200a84a7749580836f8a /scripts/mysql_config.sh
parent91c47e6fdf9aff728761177aff731442efc5ab29 (diff)
downloadmariadb-git-0661c7329d5b1fb7630f7ba37c722c06882ea811.tar.gz
MDEV-6352 [PATCH] mysql_config prints usage to stdout and exit with 0 if run with unknow option
Diffstat (limited to 'scripts/mysql_config.sh')
-rw-r--r--scripts/mysql_config.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/mysql_config.sh b/scripts/mysql_config.sh
index beff6e5eb5f..4bf95cccbe6 100644
--- a/scripts/mysql_config.sh
+++ b/scripts/mysql_config.sh
@@ -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