We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd6ed42 commit 629101fCopy full SHA for 629101f
entrypoint.sh
@@ -1,13 +1,15 @@
1
#!/bin/bash
2
3
-[ 3 -le $# -a $# -le 5 ] || {
4
- cat <<EOF
5
-icn USER PASSWORD HOSTNAME [PORT]
+[ 3 -le $# -a $# -lt 5 ] || {
+ cat 1>&2 <<-EOF
+$(basename $0): ERROR: Expected between 3 and 4 arguments, got $# ${@:-"$@"}
6
7
-Initialize Configured Namespace for USER with PASSWORD connecting to HOSTNAME on PORT (defaults to 3306)
+$(basename $0): Usage: $(basename $0) USER PASSWORD HOSTNAME [PORT]
8
+ Initialize Configured Namespace for USER with PASSWORD
9
+ connecting to HOSTNAME on PORT (default: 3306)
10
EOF
- exit 1;
- }
11
+exit 1;
12
+}
13
14
export MYSQL_PWD=${2:?"No password provided"}
15
mysql <source_this.sql \
0 commit comments