[PATCH compass-ci] sparrow/3-code/debian: fix format problem.

Signed-off-by: Zhang Yale <zhangyale3@huawei.com> --- sparrow/3-code/os/debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparrow/3-code/os/debian b/sparrow/3-code/os/debian index efb4fcb..80dca70 100644 --- a/sparrow/3-code/os/debian +++ b/sparrow/3-code/os/debian @@ -1,5 +1,5 @@ #!/bin/bash -cat >> /etc/default/docker <<EOF +cat > /etc/default/docker << EOF DOCKER_OPTS="--dns 114.114.114.114" EOF -- 2.23.0

On Thu, Oct 29, 2020 at 07:50:51PM +0800, Zhang Yale wrote:
Signed-off-by: Zhang Yale <zhangyale3@huawei.com> --- sparrow/3-code/os/debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparrow/3-code/os/debian b/sparrow/3-code/os/debian index efb4fcb..80dca70 100644 --- a/sparrow/3-code/os/debian +++ b/sparrow/3-code/os/debian @@ -1,5 +1,5 @@ #!/bin/bash -cat >> /etc/default/docker <<EOF +cat > /etc/default/docker << EOF
Why delete ">" ? Thanks, Xueliang
DOCKER_OPTS="--dns 114.114.114.114" EOF
-- 2.23.0

On Thu, Oct 29, 2020 at 07:55:19PM +0800, Cao Xueliang wrote:
On Thu, Oct 29, 2020 at 07:50:51PM +0800, Zhang Yale wrote:
Signed-off-by: Zhang Yale <zhangyale3@huawei.com> --- sparrow/3-code/os/debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparrow/3-code/os/debian b/sparrow/3-code/os/debian index efb4fcb..80dca70 100644 --- a/sparrow/3-code/os/debian +++ b/sparrow/3-code/os/debian @@ -1,5 +1,5 @@ #!/bin/bash -cat >> /etc/default/docker <<EOF +cat > /etc/default/docker << EOF
Why delete ">" ?
">>" will appends the conntent. Maybe this command only run ones. but i think '>' is better. Thanks, Chenglong
Thanks, Xueliang
DOCKER_OPTS="--dns 114.114.114.114" EOF
-- 2.23.0

On Thu, Oct 29, 2020 at 07:50:51PM +0800, Zhang Yale wrote: Pls ignore this email. Thanks, Yale
Signed-off-by: Zhang Yale <zhangyale3@huawei.com> --- sparrow/3-code/os/debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparrow/3-code/os/debian b/sparrow/3-code/os/debian index efb4fcb..80dca70 100644 --- a/sparrow/3-code/os/debian +++ b/sparrow/3-code/os/debian @@ -1,5 +1,5 @@ #!/bin/bash -cat >> /etc/default/docker <<EOF +cat > /etc/default/docker << EOF DOCKER_OPTS="--dns 114.114.114.114" EOF
-- 2.23.0

On Thu, Oct 29, 2020 at 07:50:51PM +0800, Zhang Yale wrote:
Signed-off-by: Zhang Yale <zhangyale3@huawei.com> +++ b/sparrow/3-code/os/debian -cat >> /etc/default/docker <<EOF +cat > /etc/default/docker << EOF
Why use > instead of >> ? Thanks, Zhangyu
DOCKER_OPTS="--dns 114.114.114.114" EOF
-- 2.23.0

On Thu, Oct 29, 2020 at 07:50:51PM +0800, Zhang Yale wrote:
Signed-off-by: Zhang Yale <zhangyale3@huawei.com> --- sparrow/3-code/os/debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sparrow/3-code/os/debian b/sparrow/3-code/os/debian index efb4fcb..80dca70 100644 --- a/sparrow/3-code/os/debian +++ b/sparrow/3-code/os/debian @@ -1,5 +1,5 @@ #!/bin/bash -cat >> /etc/default/docker <<EOF +cat > /etc/default/docker << EOF
The combination of cat and EOF has the additional function. cat >> /xxx/xx/ << EOF sdfg sfdsdg EOF Thanks, Baijing
DOCKER_OPTS="--dns 114.114.114.114" EOF
-- 2.23.0
participants (5)
-
Bai Jing
-
Cao Xueliang
-
Wang Chenglong
-
Zhang Yale
-
Zhang Yu