1 2 3 4 5 6 7 8 9 10 11 12
#!/usr/bin/env bash main() { yes | sudo pacman -Syu devtools extra-x86_64-build -c && rm *.log mapfile -t code_pkgs <<< `find . -type f -name 'code-translucent-*.pkg.tar.zst' | sort -Vr` sudo pacman -U "${code_pkgs[0]}" } main "$@"