[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