Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- print_error() {
- echo "Erro: $1" >&2
- }
- extract_proton_ge() {
- tar xvzf "$1" -C "$2" || print_error "Falha ao extrair o Proton-GE."
- }
- # Função para mover para a pasta compatibilitytools.d
- move_to_compatibilitytools() {
- mv "$1" "$2" || print_error "Falha ao mover o Proton-GE para a pasta compatibilitytools.d."
- }
- compatibilitytools_path="$HOME/.steam/root/compatibilitytools.d/"
- if [ ! -d "$compatibilitytools_path" ]
- then
- mkdir -p "$compatibilitytools_path" || print_error "Falha ao criar a pasta compatibilitytools.d."
- fi
- proton_ge_archive="Proton-GE-*.tar.gz"
- extract_proton_ge "$proton_ge_archive" "$compatibilitytools_path"
- move_to_compatibilitytools "Proton-GE-*" "$compatibilitytools_path"
- echo "Proton-GE instalado com sucesso!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement