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