before: echo you can use cmd: redis-cli to start a redis client echo and then use cmd: keys *
after: echo "you can use cmd: redis-cli to start a redis client" echo "and then use cmd: keys *"
[why] when use echo $string, if $string include '*', will be parsed, just like: root@test-lys /c/compass-ci/container/redis# ./start ... and then use cmd: keys build Dockerfile start
Signed-off-by: Liu Yinsi liuyinsi@163.com --- container/redis/start | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/container/redis/start b/container/redis/start index 34266a0..4611fe4 100755 --- a/container/redis/start +++ b/container/redis/start @@ -24,6 +24,6 @@ cmd=( "${cmd[@]}"
# test -echo you can use cmd: redis-cli to start a redis client -echo and then use cmd: keys * +echo "you can use cmd: redis-cli to start a redis client" +echo "and then use cmd: keys *"