Fix missconfigured pipe detection and getopts.
This commit is contained in:
parent
801e735379
commit
fda1f76cc5
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ SUBCOMMAND LIST:
|
||||||
-c\tRun SQL on CLI instead of GUI"
|
-c\tRun SQL on CLI instead of GUI"
|
||||||
|
|
||||||
# Detect Pipe
|
# Detect Pipe
|
||||||
if ! [ -t 1 ]
|
if ! [ -t 0 ]
|
||||||
then
|
then
|
||||||
USE_CLI=true
|
USE_CLI=true
|
||||||
fi
|
fi
|
||||||
|
@ -193,7 +193,7 @@ case "${MAIN_OPTION}" in
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
while getopts "u:p:d:c:" o
|
while getopts "u:p:d:c" o
|
||||||
do
|
do
|
||||||
case "$o" in
|
case "$o" in
|
||||||
u) TARGET_HOST_USERNAME="${OPTARG}" ;;
|
u) TARGET_HOST_USERNAME="${OPTARG}" ;;
|
||||||
|
|
Loading…
Reference in a new issue