]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-perf-pull-requests: do not fail if symblink already exists
authorKefu Chai <kchai@redhat.com>
Sat, 22 Aug 2020 02:27:08 +0000 (10:27 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 22 Aug 2020 02:27:08 +0000 (10:27 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
ceph-perf-pull-requests/config/definitions/ceph-perf-pull-requests.yml

index cc318f7eaa5594e3c3a944b20f891bf8d43cf0df..3b23072cb92b2040b4a81423a52bec21b0034ff3 100644 (file)
               # BuildRequires in ceph.spec.in, and it is installed by `run-make.sh`.
               # clang searches for GCC in a bunch of well known places:
               # see https://github.com/llvm-mirror/clang/blob/master/lib/Driver/ToolChains/Gnu.cpp
-              sudo ln -s /opt/rh/gcc-toolset-${{gcc_toolset_ver}}/root/lib/gcc/x86_64-redhat-linux/${{gcc_toolset_ver}} \
-                         /usr/lib/gcc/x86_64-redhat-linux/${{gcc_toolset_ver}}
+              sudo ln -sf /opt/rh/gcc-toolset-${{gcc_toolset_ver}}/root/lib/gcc/x86_64-redhat-linux/${{gcc_toolset_ver}} \
+                          /usr/lib/gcc/x86_64-redhat-linux/${{gcc_toolset_ver}}
               ;;
           fedora)
               sudo yum install -y python3-pyyaml python3-lxml python3-prettytable ${{extra_pkgs}}