瀏覽代碼

Replace `tee` with actual redirects, tee still print to stdout of course :-)

master
Ray Burgemeestre 3 年之前
父節點
當前提交
c7983ded6f
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. +5
    -5
      switch-to-latest-clang

+ 5
- 5
switch-to-latest-clang 查看文件

@@ -3,10 +3,10 @@
set +e
set -o pipefail

update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-12 40 | tee /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-12 40 | tee -a /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 40 | tee -a /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 40 | tee -a /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-12 40 | tee -a /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-12 40 > /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-12 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 40 >> /tmp/.switch-to-clang.stdout
update-alternatives --install /usr/bin/ld ld /usr/bin/ld.lld-12 40 >> /tmp/.switch-to-clang.stdout

echo compiler set to: $(readlink /etc/alternatives/c++)

Loading…
取消
儲存