1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-05 12:03:00 +02:00

fix: parse flatpak version

This commit is contained in:
aclist 2023-01-19 22:38:51 +09:00
parent 4994405c30
commit 4852acb946

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=3.2.0-rc.2 version=3.2.0-rc.3
aid=221100 aid=221100
game="dayz" game="dayz"
@ -1770,7 +1770,7 @@ fetch_helpers(){
} }
steam_deps(){ steam_deps(){
local flatpak steam local flatpak steam
flatpak=$(flatpak run com.valvesoftware.Steam --version 2>/dev/null) flatpak=$(flatpak list | grep valvesoftware.Steam)
steam=$(command -v steam) steam=$(command -v steam)
if [[ -z "$steam" ]] && [[ -z "$flatpak" ]]; then if [[ -z "$steam" ]] && [[ -z "$flatpak" ]]; then
warn "Requires Steam or Flatpak Steam" warn "Requires Steam or Flatpak Steam"