Created
September 9, 2024 01:34
-
-
Save anacrolix/051beb6e68592a20a1c1aeb772f4bd13 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
set -eu | |
declare -A dict | |
dict=( | |
["linux/amd64"]="linux-amd64" | |
["linux/arm64"]="linux-arm64" | |
["linux/arm/v7"]="linux-arm" | |
) | |
echo "${dict[$1]}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment