Skip to content

Instantly share code, notes, and snippets.

@drisspg
drisspg / update-alternatives-clang.sh
Last active May 10, 2023 20:11
Update alternatives to new version of clang
#!/usr/bin/env bash
# Install newest clang with `bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)"`
# chmod u+x update_alternatives_clang.sh
# ./update_alternatives_clang.sh <version> <priority>
update_alternatives() {
local version=${1}
local priority=${2}
local master=${3}
local slaves=${4}