Skip to content

Commit

Permalink
prefer flatpak protontricks when available
Browse files Browse the repository at this point in the history
  • Loading branch information
rockerbacon committed May 11, 2024
1 parent 61f4612 commit af410ac
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 af410ac

Please sign in to comment.