Skip to content

Instantly share code, notes, and snippets.

@rexagod
Created January 12, 2021 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rexagod/29625bd6741e6b1fd8aae7b809f14cf3 to your computer and use it in GitHub Desktop.
Save rexagod/29625bd6741e6b1fd8aae7b809f14cf3 to your computer and use it in GitHub Desktop.
Workarounds for Fedora 33.
# Resource endpoints
declare -A pull
pull=(
["docker"]='rexagod/f16bc3cde0cdde21b1f20473f701bc07/raw/a3ff4edf6629ed63d4d45f2068807a060e1009ef/docker.bash'
["k8s"]='rexagod/a0a8cb19770fee943c91b0abd4ab9a7f/raw/cddb0aa687fe988c15d58a23997e717034f148f4/k8s.bash'
["kvm"]='rexagod/53223bd451d372b2299351ffdfd818b0/raw/c45e48697b25d6f689998264ed8aa2034a669110/kvm.bash'
)
printf "=> %s\n" "${!pull[@]}"
echo "Press <Enter> to install all of the above packages."
read req
# Carriage return, install everything
if [[ ! $req ]]; then
for bin in ${pull[@]}; do
bash -c "$(curl -fsSL "https://gist.githubusercontent.com/$bin")"
done
exit 0
fi
# Bad input, exit
if [[ ! ${pull[$req]} ]]; then
exit 1
fi
# Install `req` package
bash -c "$(curl -fsSL "https://gist.githubusercontent.com/${pull[$req]}")"
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment