diff --git a/README.md b/README.md index 4b45435..56e5394 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ Parameters: -n DB - Select the database DB. -r N - Repeat command N times. -a PASSWORD - Authentication password + OR -a "USERNAME PASSWORD" - Authentication username & password in double quotes -i INTERVAL - Interval between commands ``` diff --git a/redis-bash-cli b/redis-bash-cli index de0e9d9..30f53fa 100755 --- a/redis-bash-cli +++ b/redis-bash-cli @@ -36,7 +36,7 @@ else echo "Wrong arguments" exit 255 fi -[ "${AUTH}" != "" ] && redis-client 6 AUTH "$AUTH" > /dev/null +[ "${AUTH}" != "" ] && redis-client 6 AUTH $AUTH > /dev/null [ "${REDISDB}" != "" ] && redis-client 6 SELECT "$REDISDB" > /dev/null for ((z=1;z<=${REPEAT};z++)) do