Skip to content

Instantly share code, notes, and snippets.

View kristw's full-sized avatar

Krist Wongsuphasawat kristw

View GitHub Profile
#!/bin/bash
func install_yamlfmt {
# Check the machine architecture
arch=$(uname -m)
# Set the URL based on the machine architecture
if [[ $arch == "x86_64" ]]; then
url="https://github.com/google/yamlfmt/releases/download/v0.10.0/yamlfmt_0.10.0_Linux_x86_64.tar.gz"
elif [[ $arch == "arm64" ]]; then