This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
OlderNewer