[PATCH compass-ci] container: fix crystal-compiler/install error

[why] when execute crystal-compiler/install, error: ln: failed to create symbolic link '/usr/local/bin/crystal': File exists Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- container/crystal-compiler/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container/crystal-compiler/install b/container/crystal-compiler/install index 0fa1943..4ec5c47 100755 --- a/container/crystal-compiler/install +++ b/container/crystal-compiler/install @@ -3,4 +3,4 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. DIR=$(dirname $(realpath $0)) -sudo ln -s $DIR/run /usr/local/bin/crystal +sudo ln -sf $DIR/run /usr/local/bin/crystal -- 2.23.0

On Thu, Nov 12, 2020 at 09:09:25AM +0800, Liu Yinsi wrote:
[why] when execute crystal-compiler/install, error:
ln: failed to create symbolic link '/usr/local/bin/crystal': File exists
The space at the beginning of line is unnecessary. -------- Thanks Yu Chuan
Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- container/crystal-compiler/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/crystal-compiler/install b/container/crystal-compiler/install index 0fa1943..4ec5c47 100755 --- a/container/crystal-compiler/install +++ b/container/crystal-compiler/install @@ -3,4 +3,4 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
DIR=$(dirname $(realpath $0)) -sudo ln -s $DIR/run /usr/local/bin/crystal +sudo ln -sf $DIR/run /usr/local/bin/crystal -- 2.23.0

On Thu, Nov 12, 2020 at 06:32:12PM +0800, Yu Chuan wrote:
On Thu, Nov 12, 2020 at 09:09:25AM +0800, Liu Yinsi wrote:
[why] when execute crystal-compiler/install, error:
ln: failed to create symbolic link '/usr/local/bin/crystal': File exists
The space at the beginning of line is unnecessary.
ok Thanks, Yinsi
-------- Thanks Yu Chuan
Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- container/crystal-compiler/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/container/crystal-compiler/install b/container/crystal-compiler/install index 0fa1943..4ec5c47 100755 --- a/container/crystal-compiler/install +++ b/container/crystal-compiler/install @@ -3,4 +3,4 @@ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
DIR=$(dirname $(realpath $0)) -sudo ln -s $DIR/run /usr/local/bin/crystal +sudo ln -sf $DIR/run /usr/local/bin/crystal -- 2.23.0
participants (2)
-
Liu Yinsi
-
Yu Chuan