Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Merge pull request #641 from rockerbacon/prefer-flatpak-protontricks
Browse files Browse the repository at this point in the history
Prefer flatpak protontricks when available
  • Loading branch information
rockerbacon authored May 11, 2024
2 parents 61f4612 + af410ac commit c03ece7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions utils/protontricks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ function log_error() {
}

function get_release() {
if [ -z "$(command -v protontricks)" ]; then
if [ -n "$(command -v flatpak)" ]; then
if flatpak info com.github.Matoking.protontricks &> /dev/null; then
echo "flatpak"
return 0
fi
if [ -n "$(command -v flatpak)" ]; then
if flatpak info com.github.Matoking.protontricks &> /dev/null; then
echo "flatpak"
return 0
fi
else
fi

if [ -n "$(command -v protontricks)" ]; then
echo "system"
return 0
fi
Expand Down

0 comments on commit c03ece7

Please sign in to comment.